3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nice = 1; $u = 'data://,Good Work!'; if (!isset ($u)) $nice = 0; if (ereg ('\.', $u)) $nice = 0; if (ereg ('%', $u)) $nice = 0; echo $nice; if (ereg ('[0-9]', $u)) $nice = 0; if (ereg ('http', $u) ) $nice = 0; if (ereg ('https', $u) ) $nice = 0; if (ereg ('ftp', $u)) $nice = 0; if (ereg ('telnet', $u)) $nice = 0; echo $nice; if ($nice) { if (@file_exists ($u)) $nice = 0; } echo $nice; if ($nice) { $nice = @file_get_contents ($u); echo $nice; if ($nice === 'Good Work!') echo 'ok'; } ?>

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.0060.01218.29
8.3.50.0090.00722.07
8.3.40.0110.00718.83
8.3.30.0140.00319.22
8.3.20.0000.00720.16
8.3.10.0080.00021.97
8.3.00.0040.00422.39
8.2.180.0090.00916.63
8.2.170.0120.00322.96
8.2.160.0070.00721.01
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.49
8.2.110.0040.00419.21
8.2.100.0000.01117.84
8.2.90.0030.00517.91
8.2.80.0050.00219.48
8.2.70.0080.00017.63
8.2.60.0000.00817.50
8.2.50.0060.00317.63
8.2.40.0080.00018.34
8.2.30.0040.00418.16
8.2.20.0000.00717.79
8.2.10.0000.00819.60
8.2.00.0020.00517.73
8.1.280.0110.00325.92
8.1.270.0080.00022.01
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.28
8.1.230.0070.00320.96
8.1.220.0050.00217.77
8.1.210.0000.00818.77
8.1.200.0030.00517.48
8.1.190.0000.00917.23
8.1.180.0060.00318.10
8.1.170.0060.00318.67
8.1.160.0050.00322.04
8.1.150.0070.00018.62
8.1.140.0040.00417.36
8.1.130.0030.00317.83
8.1.120.0040.00417.46
8.1.110.0050.00317.46
8.1.100.0030.00417.38
8.1.90.0040.00417.44
8.1.80.0000.00717.50
8.1.70.0040.00417.50
8.1.60.0090.00017.60
8.1.50.0040.00417.60
8.1.40.0000.00717.58
8.1.30.0040.00417.66
8.1.20.0080.00017.68
8.1.10.0040.00417.49
8.1.00.0030.00517.43
8.0.300.0070.00021.95
8.0.290.0080.00016.75
8.0.280.0000.00718.46
8.0.270.0000.00717.24
8.0.260.0060.00016.96
8.0.250.0000.00717.06
8.0.240.0030.00617.04
8.0.230.0000.00717.03
8.0.220.0000.00817.00
8.0.210.0000.00716.85
8.0.200.0040.00417.05
8.0.190.0040.00416.97
8.0.180.0000.00716.99
8.0.170.0000.00916.98
8.0.160.0040.00417.05
8.0.150.0000.00716.87
8.0.140.0040.00416.84
8.0.130.0000.00613.34
8.0.120.0000.00816.95
8.0.110.0070.00016.80
8.0.100.0000.00716.80
8.0.90.0030.00617.02
8.0.80.0140.00316.85
8.0.70.0000.00817.05
8.0.60.0000.00717.05
8.0.50.0050.00216.88
8.0.30.0140.00517.16
8.0.20.0130.00517.40
8.0.10.0040.00417.05
8.0.00.0110.00816.65
7.4.330.0050.00015.00
7.4.320.0070.00016.54
7.4.300.0060.00016.66
7.4.290.0000.00716.57
7.4.280.0000.00716.42
7.4.270.0080.00016.65
7.4.260.0070.00016.51
7.4.250.0000.00716.48
7.4.240.0010.00716.55
7.4.230.0030.00316.74
7.4.220.0090.00916.71
7.4.210.0100.00516.61
7.4.200.0030.00316.64
7.4.190.0070.00016.66
7.4.160.0060.01116.37
7.4.150.0170.00017.40
7.4.140.0070.01317.86
7.4.130.0100.00716.50
7.4.120.0070.01016.51
7.4.110.0130.00316.48
7.4.100.0120.00616.68
7.4.90.0060.01116.56
7.4.80.0070.01119.39
7.4.70.0060.01016.55
7.4.60.0060.01116.40
7.4.50.0000.00816.41
7.4.40.0070.00722.77
7.4.30.0070.00716.47
7.4.00.0030.01314.81
7.3.330.0060.00013.03
7.3.320.0030.00313.18
7.3.310.0040.00416.25
7.3.300.0030.00316.17
7.3.290.0030.01116.24
7.3.280.0100.00716.25
7.3.270.0070.01117.40
7.3.260.0120.00616.53
7.3.250.0110.00916.39
7.3.240.0220.00316.65
7.3.230.0090.01216.50
7.3.210.0140.00416.45
7.3.200.0060.01219.39
7.3.190.0090.00916.18
7.3.180.0120.00316.35
7.3.170.0060.01116.41
7.3.160.0130.00316.24
7.3.120.0040.01114.90
7.3.10.0060.00616.59
7.3.00.0040.00716.36
7.2.330.0110.00816.41
7.2.320.0110.01116.52
7.2.310.0100.01016.38
7.2.300.0120.00416.35
7.2.290.0070.01016.63
7.2.130.0090.00316.51
7.2.120.0130.00316.50
7.2.110.0030.00716.65
7.2.100.0030.00716.55
7.2.90.0030.00616.45
7.2.80.0090.00316.89
7.2.70.0070.00416.82
7.2.60.0040.00916.68
7.2.50.0080.00516.38
7.2.40.0110.00316.95
7.2.30.0040.00416.36
7.2.20.0030.01016.61
7.2.10.0070.01016.09
7.2.00.0070.00718.03
7.1.250.0060.00615.57
7.1.200.0040.00415.59
7.1.100.0070.00417.64
7.1.70.0000.00817.01
7.1.60.0120.01219.82
7.1.50.0000.01016.86
7.1.00.0030.07322.35
7.0.200.0070.00016.49
7.0.140.0070.07022.08
7.0.60.0070.08319.90
7.0.50.0070.03717.83
7.0.40.0070.09020.12
7.0.30.0330.07720.15
7.0.20.0230.04020.00
7.0.10.0170.09020.11
7.0.00.0030.04320.33
5.6.280.0000.07721.00
5.6.210.0070.04720.63
5.6.200.0130.08318.24
5.6.190.0100.04320.27
5.6.180.4130.04720.42
5.6.170.0300.07320.48
5.6.160.0000.04720.38
5.6.150.0030.04718.18
5.6.140.0100.08018.14
5.6.130.0070.04018.11
5.6.120.0100.06720.90
5.6.110.0030.04721.13
5.6.100.0130.05320.96
5.6.90.0100.08321.11
5.6.80.0130.07320.51
5.6.70.0300.07020.43
5.5.350.0000.04320.45
5.5.340.0200.04717.88
5.5.330.0130.05020.26
5.5.320.0230.07020.51
5.5.310.0270.07320.28
5.5.300.0070.05018.00
5.5.290.0030.04017.92
5.5.280.0030.08720.74
5.5.270.0100.07320.89
5.5.260.0070.06020.84
5.5.250.0170.07020.55
5.5.240.0070.06720.16
5.4.450.0770.04719.42
5.4.440.0970.05019.26
5.4.430.0170.04319.16
5.4.420.0770.03319.41
5.4.410.0270.05718.88
5.4.400.0130.05018.70
5.4.390.0170.04718.70
5.4.380.0570.07018.70
5.4.370.0130.05718.47
5.4.360.0200.04718.60
5.4.350.0270.04318.63
5.4.340.0200.05018.55
5.4.320.0060.03612.46
5.4.310.0070.03812.46
5.4.300.0060.04912.46
5.4.290.0050.03912.46
5.4.280.0070.03512.36
5.4.270.0130.06318.98
5.4.260.0130.05318.95
5.4.250.0070.06018.76
5.4.240.0070.06319.00
5.4.230.0100.07019.00
5.4.220.0070.05718.78
5.4.210.0100.05318.95
5.4.200.0100.06018.96
5.4.190.0070.05719.07
5.4.180.0230.05718.88
5.4.170.0170.06718.99
5.4.160.0070.05718.95
5.4.150.0030.07318.99
5.4.140.0070.05316.34
5.4.130.0170.05016.43
5.4.120.0070.08016.42
5.4.110.0070.06316.61
5.4.100.0070.07016.60
5.4.90.0030.05016.68
5.4.80.0130.04716.37
5.4.70.0130.04716.39
5.4.60.0030.06716.65
5.4.50.0130.06316.60
5.4.40.0030.05316.38
5.4.30.0030.05316.61
5.4.20.0100.05316.63
5.4.10.0100.05016.44
5.4.00.0100.05316.07
5.3.290.0070.04412.80
5.3.280.0070.05714.77
5.3.270.0130.04714.61
5.3.260.0030.05714.71
5.3.250.0070.05314.77
5.3.240.0070.05314.61
5.3.230.0000.08314.60
5.3.220.0070.06014.51
5.3.210.0130.04714.67
5.3.200.0130.07014.57
5.3.190.0100.05314.57
5.3.180.0100.06314.72
5.3.170.0130.07014.56
5.3.160.0100.05714.72
5.3.150.0100.06314.72
5.3.140.0030.07714.55
5.3.130.0130.04714.38
5.3.120.0130.05714.60
5.3.110.0170.04714.70
5.3.100.0200.04714.18
5.3.90.0100.04713.96
5.3.80.0030.06314.22
5.3.70.0130.06013.84
5.3.60.0030.05713.99
5.3.50.0100.05714.02
5.3.40.0100.05313.78
5.3.30.0100.04713.96
5.3.20.0000.05713.64
5.3.10.0130.05313.71
5.3.00.0070.06313.81
5.2.170.0100.04011.38
5.2.160.0070.04310.97
5.2.150.0130.03711.38
5.2.140.0130.04011.14
5.2.130.0100.03711.35
5.2.120.0070.04311.22
5.2.110.0100.04311.22
5.2.100.0100.03311.26
5.2.90.0030.04711.30
5.2.80.0100.04011.32
5.2.70.0070.05710.92
5.2.60.0130.05011.19
5.2.50.0030.06011.27
5.2.40.0100.03711.25
5.2.30.0100.04310.80
5.2.20.0070.03711.02
5.2.10.0070.04011.06
5.2.00.0070.04010.78
5.1.60.0070.04710.24
5.1.50.0000.0439.89
5.1.40.0170.04310.28
5.1.30.0070.03310.61
5.1.20.0000.05010.56
5.1.10.0100.03310.37
5.1.00.0130.03010.29
5.0.50.0030.0308.64
5.0.40.0070.0278.61
5.0.30.0100.0478.45
5.0.20.0030.0278.43
5.0.10.0030.0308.39
5.0.00.0030.0408.16
4.4.90.0100.0207.85
4.4.80.0000.0237.85
4.4.70.0030.0277.85
4.4.60.0000.0307.85
4.4.50.0000.0277.85
4.4.40.0000.0407.85
4.4.30.0000.0277.85
4.4.20.0030.0277.85
4.4.10.0000.0237.85
4.4.00.0030.0377.85
4.3.110.0000.0307.85
4.3.100.0030.0207.85
4.3.90.0000.0277.85
4.3.80.0100.0277.85
4.3.70.0030.0177.85
4.3.60.0000.0237.85
4.3.50.0030.0237.85
4.3.40.0030.0307.85
4.3.30.0000.0237.85
4.3.20.0030.0207.85
4.3.10.0130.0107.85
4.3.00.0100.01015.59

preferences:
48.47 ms | 401 KiB | 5 Q