3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = ""; $a = "userinput"; // This was passed as a command line argument to the script so it can be changed. if (!empty($a)) { // nothing here } if (!empty($value)) { print "Goodbye"; } // 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.0180.00318.55
8.3.50.0030.01016.27
8.3.40.0070.00718.76
8.3.30.0110.00418.74
8.3.20.0040.00418.64
8.3.10.0040.00423.51
8.3.00.0070.00021.91
8.2.180.0190.00016.60
8.2.170.0130.00722.96
8.2.160.0140.00019.32
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00021.05
8.2.120.0040.00426.35
8.2.110.0040.00419.08
8.2.100.0080.00417.91
8.2.90.0000.00817.84
8.2.80.0000.00917.97
8.2.70.0050.00317.80
8.2.60.0070.00018.03
8.2.50.0050.00318.10
8.2.40.0030.00619.34
8.2.30.0040.00420.62
8.2.20.0040.00718.12
8.2.10.0000.00718.30
8.2.00.0000.00719.45
8.1.280.0110.00325.92
8.1.270.0000.00723.99
8.1.260.0150.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00019.09
8.1.230.0040.00722.75
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0000.00918.50
8.1.160.0040.00418.79
8.1.150.0060.00318.79
8.1.140.0000.00818.79
8.1.130.0000.00720.26
8.1.120.0050.00317.42
8.1.110.0070.00017.35
8.1.100.0070.00017.38
8.1.90.0000.00817.36
8.1.80.0050.00317.49
8.1.70.0030.00317.46
8.1.60.0000.00817.51
8.1.50.0040.00417.50
8.1.40.0000.00717.39
8.1.30.0040.00417.54
8.1.20.0000.00717.61
8.1.10.0000.00717.32
8.1.00.0000.00817.36
8.0.300.0040.00419.97
8.0.290.0000.00816.63
8.0.280.0030.00318.50
8.0.270.0000.00817.17
8.0.260.0000.00720.20
8.0.250.0070.00016.99
8.0.240.0030.00316.89
8.0.230.0000.00716.96
8.0.220.0040.00416.91
8.0.210.0040.00416.80
8.0.200.0000.00716.99
8.0.190.0060.00317.00
8.0.180.0000.00816.81
8.0.170.0030.00516.81
8.0.160.0040.00416.96
8.0.150.0000.00716.78
8.0.140.0030.00516.88
8.0.130.0050.00013.30
8.0.120.0030.00616.85
8.0.110.0000.00816.79
8.0.100.0020.00516.66
8.0.90.0070.00016.85
8.0.80.0030.01316.84
8.0.70.0040.00416.84
8.0.60.0000.00716.82
8.0.50.0000.00716.85
8.0.30.0120.00817.12
8.0.20.0150.00517.40
8.0.10.0070.00017.01
8.0.00.0080.01016.59
7.4.330.0050.00015.55
7.4.320.0030.00316.61
7.4.300.0060.00016.53
7.4.290.0070.00016.61
7.4.280.0080.00016.50
7.4.270.0030.00316.53
7.4.260.0000.00816.35
7.4.250.0000.00816.35
7.4.240.0030.00316.47
7.4.230.0030.00316.63
7.4.220.0030.00616.49
7.4.210.0080.00816.55
7.4.200.0040.00416.56
7.4.160.0100.00716.61
7.4.140.0110.01017.86
7.4.130.0070.01016.65
7.4.120.0090.01016.43
7.4.110.0130.00316.53
7.4.100.0090.00916.54
7.4.90.0140.00316.35
7.4.80.0130.00719.39
7.4.70.0140.00416.41
7.4.60.0120.00416.37
7.4.50.0060.01016.39
7.4.40.0100.00716.44
7.4.00.0030.00914.71
7.3.330.0020.00212.96
7.3.320.0050.00012.94
7.3.310.0000.00816.08
7.3.300.0030.00316.13
7.3.290.0070.00016.16
7.3.280.0070.00716.18
7.3.260.0100.01016.32
7.3.240.0100.00916.26
7.3.230.0170.00016.29
7.3.210.0070.01016.33
7.3.200.0130.01016.21
7.3.190.0080.00716.04
7.3.180.0060.01216.37
7.3.170.0120.00316.14
7.3.160.0040.01416.34
7.3.10.0080.00816.46
7.3.00.0120.00416.42
7.2.330.0080.01416.40
7.2.320.0070.01616.44
7.2.310.0000.01616.50
7.2.300.0100.01016.16
7.2.290.0070.01416.51
7.2.130.0120.00816.41
7.2.120.0120.00616.57
7.2.110.0100.00816.51
7.2.100.0110.00816.73
7.2.90.0420.00915.74
7.2.80.0470.00915.50
7.2.70.0530.00315.74
7.2.60.0490.00715.49
7.2.50.0520.00715.55
7.2.40.0450.01015.42
7.2.30.0960.01015.69
7.2.20.0360.01115.53
7.2.10.0540.00415.62
7.2.00.0510.00515.85
7.1.250.0090.00914.97
7.1.210.0820.01013.41
7.1.200.1270.00013.66
7.1.190.0920.00613.72
7.1.180.0760.00313.71
7.1.170.1280.00313.75
7.1.160.0880.00713.58
7.1.150.0630.00713.53
7.1.140.0880.01013.52
7.1.130.0950.01013.65
7.1.120.0720.00613.37
7.1.110.0740.00713.45
7.1.100.0860.00613.95
7.1.90.1100.01613.81
7.1.80.0660.00313.86
7.1.70.1020.00713.71
7.1.60.1460.01031.96
7.1.50.1200.00731.85
7.1.40.1070.00331.94
7.1.30.1050.00631.48
7.1.20.0930.00631.59
7.1.10.0880.01013.52
7.1.00.0780.00913.43

preferences:
60.04 ms | 400 KiB | 5 Q