3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = ""; $a = '$value = "1"'; // This was passed as a command line argument to the script so it can be changed. if (!empty($a)) { // nothing here } if (!empty($value) && $value === "1") { print "Goodbye"; } var_dump($a); // Can the value of $a on line 4 be altered in order to print Goodbye?

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.3.60.0160.00618.55
8.3.50.0110.00716.59
8.3.40.0120.00318.58
8.3.30.0060.00918.54
8.3.20.0090.00918.83
8.3.10.0000.00823.53
8.3.00.0090.00021.91
8.2.180.0070.01016.38
8.2.170.0070.01422.96
8.2.160.0070.00719.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00720.95
8.2.120.0040.00426.35
8.2.110.0060.00319.39
8.2.100.0110.00617.72
8.2.90.0000.01119.17
8.2.80.0080.00017.97
8.2.70.0000.00817.93
8.2.60.0080.00018.22
8.2.50.0060.00318.10
8.2.40.0030.00519.38
8.2.30.0030.00520.54
8.2.20.0060.00317.98
8.2.10.0070.00018.27
8.2.00.0000.00821.16
8.1.280.0140.00325.92
8.1.270.0040.00423.65
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00319.52
8.1.230.0040.00819.61
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0060.00317.22
8.1.180.0000.00718.10
8.1.170.0000.00718.61
8.1.160.0040.00418.88
8.1.150.0050.00218.80
8.1.140.0090.00020.57
8.1.130.0000.00720.13
8.1.120.0050.00317.38
8.1.110.0000.00717.50
8.1.100.0050.00317.41
8.1.90.0080.00017.52
8.1.80.0030.00517.39
8.1.70.0070.00017.50
8.1.60.0080.00017.55
8.1.50.0030.00517.52
8.1.40.0040.00417.34
8.1.30.0040.00417.66
8.1.20.0000.00817.59
8.1.10.0000.00717.34
8.1.00.0060.00317.43
8.0.300.0000.00718.77
8.0.290.0040.00716.63
8.0.280.0070.00018.36
8.0.270.0040.00416.77
8.0.260.0030.00320.11
8.0.250.0000.00716.94
8.0.240.0000.00616.95
8.0.230.0000.00716.96
8.0.220.0040.00416.90
8.0.210.0000.00716.88
8.0.200.0030.00316.86
8.0.190.0000.00817.01
8.0.180.0040.00416.81
8.0.170.0060.00316.77
8.0.160.0030.00316.85
8.0.150.0030.00616.81
8.0.140.0030.00316.81
8.0.130.0030.00313.30
8.0.120.0030.00616.82
8.0.110.0000.00716.77
8.0.100.0040.00416.84
8.0.90.0080.00016.74
8.0.80.0030.01316.93
8.0.70.0000.00816.77
8.0.60.0000.00816.88
8.0.50.0000.00716.76
8.0.30.0090.00917.05
8.0.20.0090.01317.40
8.0.10.0050.00317.05
8.0.00.0150.00816.76
7.4.330.0000.00615.55
7.4.320.0030.00316.52
7.4.300.0030.00516.61
7.4.290.0000.00616.54
7.4.280.0030.00516.59
7.4.270.0000.00716.60
7.4.260.0040.00316.56
7.4.250.0000.00816.55
7.4.240.0030.00316.52
7.4.230.0070.00016.48
7.4.220.0070.00016.25
7.4.210.0040.01116.50
7.4.200.0030.00316.25
7.4.160.0070.00916.38
7.4.140.0100.01117.86
7.4.130.0110.00616.41
7.4.120.0070.01316.47
7.4.110.0090.01516.61
7.4.100.0130.00416.54
7.4.90.0140.00316.35
7.4.80.0130.00919.39
7.4.70.0080.00816.48
7.4.60.0090.00616.23
7.4.50.0030.01316.41
7.4.40.0130.01016.41
7.4.00.0070.00714.84
7.3.330.0030.00312.97
7.3.320.0000.00512.89
7.3.310.0080.00016.19
7.3.300.0080.00016.00
7.3.290.0060.00016.16
7.3.280.0090.00716.16
7.3.260.0130.00716.39
7.3.240.0130.00816.34
7.3.230.0170.00016.30
7.3.210.0090.00916.34
7.3.200.0100.00716.36
7.3.190.0110.00416.24
7.3.180.0030.01916.14
7.3.170.0130.00916.35
7.3.160.0100.01016.22
7.3.10.0100.00316.69
7.3.00.0070.00416.34
7.2.330.0150.00916.38
7.2.320.0110.01016.60
7.2.310.0000.01516.29
7.2.300.0100.00716.43
7.2.290.0100.01316.50
7.2.130.0060.00916.59
7.2.120.0110.00316.75
7.2.110.0000.01316.63
7.2.100.0030.01016.75
7.2.90.0660.00815.92
7.2.80.0830.01315.52
7.2.70.0750.00915.86
7.2.60.1070.01415.95
7.2.50.1170.00815.84
7.2.40.0550.01215.57
7.2.30.0930.00515.70
7.2.20.0900.00815.76
7.2.10.0580.00815.80
7.2.00.1230.00615.75
7.1.250.0060.00615.68
7.1.210.1850.00613.88
7.1.200.1410.00713.68
7.1.190.2120.00313.62
7.1.180.3100.00313.58
7.1.170.1550.01013.93
7.1.160.1750.00013.95
7.1.150.1370.01313.79
7.1.140.2310.00913.93
7.1.130.1300.00313.65
7.1.120.2570.00613.84
7.1.110.1740.01014.05
7.1.100.1780.00313.90
7.1.90.2400.01213.76
7.1.80.2310.00013.56
7.1.70.1780.01013.40
7.1.60.1770.01031.48
7.1.50.3370.01531.68
7.1.40.3620.01031.38
7.1.30.3720.01031.82
7.1.20.3180.01331.70
7.1.10.2850.01014.01
7.1.00.1690.00313.91

preferences:
62.1 ms | 400 KiB | 5 Q