3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array('status' => 'Available', 'images' => 'images', 'title' => 'title', 'author' => 'author', 'isbn' => 1234); $output = ''; $status = $row ['status'] == 'Available' ? 'success' : 'danger'; $output .= <<<EOD <div class="col-md-3 mb-4"> <div class="card h-100"> <img class="card-img-top" src="../admin/upload/$row[images]" width="50px" height="300px" alt="Image"> <div class="overlay"> <p><strong> Title : </strong>$row[title]</p> <p><strong> Author : </strong>$row[author]</p> <p><strong> ISBN : </strong>$row[isbn]</p> </div> <div class="card-body"> <a href="book_details.php?title=$row[title]&isbn=$row[isbn]"> <button type="button"class="btn btn-$status">$row[status]</button></a> </div> </div> </div> EOD; echo $output;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.130.0100.00917.84
8.4.120.0110.00820.54
8.4.110.0030.00618.84
8.4.100.0140.00717.65
8.4.90.0150.00617.63
8.4.80.0110.00917.70
8.4.70.0090.01017.66
8.4.60.0140.00518.70
8.4.50.0040.00519.42
8.4.40.0130.00617.79
8.4.30.0090.00918.81
8.4.20.0100.01018.05
8.4.10.0130.00718.57
8.3.250.0060.00118.97
8.3.240.0150.00416.23
8.3.230.0080.00816.80
8.3.220.0120.00719.01
8.3.210.0110.00716.43
8.3.200.0130.00616.61
8.3.190.0090.01017.19
8.3.180.0060.00416.75
8.3.170.0100.01016.57
8.3.160.0070.01116.49
8.3.150.0100.00717.38
8.3.140.0000.00816.51
8.3.130.0000.01218.53
8.3.120.0040.01119.23
8.3.110.0070.00320.94
8.3.100.0030.00624.06
8.3.90.0090.00926.77
8.3.80.0100.00016.75
8.3.70.0110.00316.75
8.3.60.0130.00718.68
8.3.50.0140.00524.63
8.3.40.0170.00018.81
8.3.30.0110.00718.73
8.3.20.0080.00021.70
8.3.10.0000.00822.03
8.3.00.0080.00023.64
8.2.290.0080.01220.46
8.2.280.0030.00618.57
8.2.270.0070.01118.59
8.2.260.0000.00818.92
8.2.250.0140.00418.44
8.2.240.0000.01017.36
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0060.00326.77
8.2.200.0060.00318.16
8.2.190.0110.01116.75
8.2.180.0070.01025.92
8.2.170.0150.00418.89
8.2.160.0050.00822.96
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.47
8.2.110.0090.00022.13
8.2.100.0060.00617.84
8.2.90.0050.00318.22
8.2.80.0080.00018.34
8.2.70.0050.00317.63
8.2.60.0050.00317.75
8.2.50.0040.00417.63
8.2.40.0040.00417.75
8.2.30.0040.00419.25
8.2.20.0030.00518.04
8.2.10.0030.00519.36
8.2.00.0000.00819.21
8.1.330.0110.00922.04
8.1.320.0150.00515.90
8.1.310.0130.00616.70
8.1.300.0100.00016.15
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0070.00022.06
8.1.260.0000.00826.35
8.1.250.0030.01028.09
8.1.240.0120.00021.86
8.1.230.0050.00520.84
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00517.36
8.1.190.0030.00617.22
8.1.180.0060.00318.10
8.1.170.0030.00617.62
8.1.160.0000.00818.95
8.1.150.0000.00718.94
8.1.140.0000.00718.82
8.1.130.0000.00720.13
8.1.120.0000.00717.50
8.1.110.0000.00717.46
8.1.100.0050.00317.49
8.1.90.0040.00417.40
8.1.80.0040.00417.38
8.1.70.0000.00717.50
8.1.60.0050.00317.61
8.1.50.0080.00017.59
8.1.40.0080.00017.51
8.1.30.0050.00317.50
8.1.20.0040.00417.60
8.1.10.0080.00017.61
8.1.00.0060.00317.39
8.0.300.0040.00420.04
8.0.290.0050.00216.88
8.0.280.0030.00318.41
8.0.270.0060.00318.67
8.0.260.0000.00618.34
8.0.250.0070.00016.93
8.0.240.0000.00616.97
8.0.230.0030.00317.04
8.0.220.0050.00216.99
8.0.210.0030.00517.01
8.0.200.0030.00517.10
8.0.190.0030.00516.97
8.0.180.0000.00816.96
8.0.170.0030.00516.98
8.0.160.0080.00016.93
8.0.150.0050.00216.82
8.0.140.0050.00316.97
8.0.130.0050.00013.34
8.0.120.0000.00716.95
8.0.110.0030.00516.80
8.0.100.0040.00416.80
8.0.90.0090.00016.87
8.0.80.0060.01116.97
8.0.70.0070.00016.91
8.0.60.0000.00717.06
8.0.50.0050.00216.93
8.0.30.0190.00417.23
8.0.20.0120.02217.25
8.0.10.0030.00317.09
8.0.00.0110.00617.02
7.4.330.0020.00215.55
7.4.320.0000.00616.45
7.4.300.0000.00716.61
7.4.290.0040.00416.42
7.4.280.0080.00016.52
7.4.270.0030.00316.55
7.4.260.0000.00713.29
7.4.250.0000.00716.41
7.4.240.0050.00216.58
7.4.230.0030.00316.52
7.4.220.0050.00216.65
7.4.210.0060.00916.61
7.4.200.0070.00016.34
7.4.130.0080.00916.64
7.4.120.0130.01016.59
7.4.110.0100.00716.49
7.4.100.0110.00616.68
7.4.90.0100.00716.71
7.4.80.0070.01019.39
7.4.70.0140.00316.68
7.4.60.0100.01116.44
7.4.50.0120.00316.68
7.4.40.0100.00616.45
7.4.30.0110.01116.04
7.4.20.0120.00916.36
7.4.10.0160.00816.34
7.4.00.0080.01116.60
7.3.330.0070.00016.47
7.3.320.0000.00613.23
7.3.310.0040.00416.19
7.3.300.0000.00716.41
7.3.290.0080.00816.38
7.3.280.0090.00916.43
7.3.260.0120.00616.38
7.3.240.0110.00616.48
7.3.230.0170.00316.39
7.3.210.0120.00416.45
7.3.200.0100.01116.57
7.3.190.0060.01016.38
7.3.180.0100.00616.55
7.3.170.0080.01216.63
7.3.160.0180.00416.56
7.3.150.0090.01416.43
7.3.140.0090.01216.25
7.3.130.0120.01216.36
7.3.120.0210.00016.26
7.3.110.0140.01016.45
7.3.100.0120.01216.22
7.3.90.0110.00916.35
7.3.80.0100.01016.34
7.3.70.0190.00316.21
7.3.60.0150.00916.32
7.3.50.0110.01416.25
7.3.40.0130.00816.22
7.3.30.0110.01116.38
7.3.20.0100.01116.36
7.3.10.0140.00716.49
7.3.00.0130.00916.29
7.2.330.0000.01816.47
7.2.320.0090.01116.41
7.2.310.0030.01716.62
7.2.300.0100.00716.67
7.2.290.0160.00516.34
7.2.280.0160.00516.50
7.2.270.0110.01116.43
7.2.260.0130.01016.14
7.2.250.0140.01116.21
7.2.240.0130.01016.52
7.2.230.0150.00716.69
7.2.220.0220.00416.48
7.2.210.0050.01516.34
7.2.200.0160.00516.57
7.2.190.0070.01516.37
7.2.180.0040.01816.48
7.2.170.0110.01116.55
7.2.160.0100.01316.43
7.2.150.0140.00816.49
7.2.140.0090.01316.47
7.2.130.0120.00916.49
7.2.120.0150.00616.41
7.2.110.0100.01016.45
7.2.100.0140.00716.42
7.2.90.0080.01616.42
7.2.80.0090.01616.59
7.2.70.0200.01016.52
7.2.60.0210.00016.52
7.2.50.0190.00916.62
7.2.40.0170.01016.59
7.2.30.0200.00716.64
7.2.20.0180.00616.67
7.2.10.0180.00616.47
7.2.00.0100.01016.47

preferences:
119.75 ms | 403 KiB | 5 Q