3v4l.org

run code in 200+ PHP versions simultaneously
<?php $SAFE_SCRIPTS = '"/path/to/a.php","/path/to/b.php"'; $file = '/path/to/a.php/../something'; if(strpos($SAFE_SCRIPTS,"\"$file\"")===false) echo 'NOT SAFE!!'; else echo 'safe :-)';
based on 357Xg

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)
7.4.00.0030.01415.05
7.3.120.0040.01514.83
7.3.110.0100.01014.62
7.3.100.0070.00714.71
7.3.90.0060.00614.50
7.3.80.0080.00414.97
7.3.70.0000.00914.86
7.3.60.0040.01214.57
7.3.50.0040.01114.63
7.3.40.0060.00614.72
7.3.30.0070.00714.84
7.3.20.0060.00816.40
7.3.10.0040.01116.73
7.3.00.0030.00816.48
7.2.250.0150.00614.88
7.2.240.0070.01414.75
7.2.230.0040.01115.06
7.2.220.0030.00614.65
7.2.210.0040.01214.82
7.2.200.0060.00615.17
7.2.190.0070.01114.93
7.2.180.0100.00315.02
7.2.170.0090.00615.04
7.2.130.0040.00716.84
7.2.120.0090.00616.86
7.2.110.0120.00016.63
7.2.100.0120.00316.52
7.2.90.0050.00516.96
7.2.80.0070.00316.93
7.2.70.0070.00716.86
7.2.60.0020.01316.87
7.2.50.0090.00316.88
7.2.40.0040.00716.91
7.2.30.0030.01016.70
7.2.20.0000.01116.95
7.2.10.0000.01316.81
7.2.00.0080.00517.94
7.1.330.0070.00715.89
7.1.320.0030.00816.00
7.1.310.0030.01315.92
7.1.300.0090.00915.58
7.1.290.0070.00715.44
7.1.280.0030.01115.78
7.1.270.0090.00615.89
7.1.260.0070.00715.68
7.1.250.0060.00315.69
7.1.240.0040.00815.79
7.1.230.0030.00915.62
7.1.220.0030.00715.68
7.1.210.0000.00815.82
7.1.200.0060.00515.76
7.1.190.0100.00315.76
7.1.180.0030.00715.94
7.1.170.0100.00015.51
7.1.160.0000.00815.88
7.1.150.0040.00415.77
7.1.140.0000.01315.54
7.1.130.0030.00715.83
7.1.120.0030.00915.72
7.1.110.0090.00015.76
7.1.100.0060.00615.55
7.1.90.0030.00715.70
7.1.80.0030.00615.94
7.1.70.0050.00716.45
7.1.60.0070.00517.76
7.1.50.0040.00715.84
7.1.40.0060.00615.56
7.1.30.0050.00515.86
7.1.20.0040.00715.61
7.1.10.0050.00515.73
7.1.00.0070.04018.91
7.0.330.0030.00615.00
7.0.320.0000.01015.48
7.0.310.0030.00615.43
7.0.300.0030.00615.15
7.0.290.0030.00715.00
7.0.280.0090.00315.25
7.0.270.0040.00715.01
7.0.260.0070.00415.23
7.0.250.0000.01315.59
7.0.240.0040.00715.46
7.0.230.0110.00015.43
7.0.220.0100.00315.43
7.0.210.0070.00415.55
7.0.200.0180.00515.01
7.0.190.0030.00715.46
7.0.180.0060.00615.49
7.0.170.0070.00715.36
7.0.160.0070.00415.31
7.0.150.0000.01015.27
7.0.140.0000.01015.45
7.0.130.0030.00715.18
7.0.120.0050.00315.20
7.0.110.0000.01115.33
7.0.100.0070.00415.15
7.0.90.0510.00117.64
7.0.80.0430.00517.70
7.0.70.0520.00217.60
7.0.60.0460.00117.68
7.0.50.0550.00317.83
7.0.40.0450.00417.05
7.0.30.0630.00216.91
7.0.20.0470.00516.82
7.0.10.0470.00216.85
7.0.00.0480.00516.81
5.6.380.0070.00714.04
5.6.370.0130.00014.43
5.6.360.0060.00314.06
5.6.350.0030.00914.52
5.6.340.0090.00314.07
5.6.330.0100.00314.59
5.6.320.0070.00314.43
5.6.310.0030.01013.97
5.6.300.0060.00614.46
5.6.290.0040.00714.37
5.6.280.0040.00414.64
5.6.270.0040.00714.61
5.6.260.0060.00314.28
5.6.250.0040.00714.36
5.6.240.0370.00317.54
5.6.230.0370.00517.38
5.6.220.0420.00317.57
5.6.210.0380.00317.37
5.6.200.0420.00417.67
5.6.190.0430.00417.70
5.6.180.0480.00417.67
5.6.170.0430.00617.72
5.6.160.0410.00317.62
5.6.150.0350.00417.77
5.6.140.0380.00417.66
5.6.130.0370.00517.71
5.6.120.0420.00217.65
5.6.110.0430.00517.56
5.6.100.0430.00217.79
5.6.90.0400.00217.64
5.6.80.0420.00317.39
5.6.70.0390.00317.31
5.6.60.0340.00317.36
5.6.50.0340.00317.36
5.6.40.0420.00217.32
5.6.30.0420.00217.29
5.6.20.0380.00517.27
5.6.10.0400.00417.32
5.6.00.0380.00017.29