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; 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; if ($nice) { if (@file_exists ($u)) $nice = 0; } if ($nice) { $nice = @file_get_contents ($u); 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.0090.00618.68
8.3.50.0100.00721.14
8.3.40.0070.00718.68
8.3.30.0140.00019.01
8.3.20.0040.00420.13
8.3.10.0060.00322.04
8.3.00.0080.00022.52
8.2.180.0150.00316.75
8.2.170.0070.00722.96
8.2.160.0100.00319.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0040.00422.20
8.2.100.0030.00919.66
8.2.90.0090.00019.22
8.2.80.0040.00418.04
8.2.70.0040.00417.50
8.2.60.0060.00617.78
8.2.50.0000.00918.07
8.2.40.0000.00819.82
8.2.30.0040.00418.09
8.2.20.0070.00017.70
8.2.10.0040.00417.81
8.2.00.0040.00417.82
8.1.280.0100.00725.92
8.1.270.0040.00422.20
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0040.00423.96
8.1.230.0040.00719.09
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0060.00317.66
8.1.180.0080.00018.80
8.1.170.0070.00018.45
8.1.160.0000.00722.17
8.1.150.0000.00718.63
8.1.140.0040.00417.39
8.1.130.0090.00017.76
8.1.120.0040.00417.46
8.1.110.0030.00617.42
8.1.100.0000.00717.30
8.1.90.0030.00417.46
8.1.80.0030.00317.48
8.1.70.0030.00317.45
8.1.60.0000.00817.54
8.1.50.0050.00217.49
8.1.40.0000.00817.55
8.1.30.0000.00817.48
8.1.20.0040.00417.62
8.1.10.0040.00417.59
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0000.00817.02
8.0.280.0030.00318.34
8.0.270.0030.00317.19
8.0.260.0030.00316.82
8.0.250.0040.00417.00
8.0.240.0040.00417.07
8.0.230.0030.00316.96
8.0.220.0070.00016.88
8.0.210.0040.00416.86
8.0.200.0070.00016.96
8.0.190.0040.00417.02
8.0.180.0030.00616.93
8.0.170.0000.00817.00
8.0.160.0030.00616.91
8.0.150.0070.00016.88
8.0.140.0000.00716.96
8.0.130.0030.00313.39
8.0.120.0070.00016.96
8.0.110.0040.00416.93
8.0.100.0080.00017.04
8.0.90.0000.00716.96
8.0.80.0060.00916.96
8.0.70.0050.00216.97
8.0.60.0040.00417.06
8.0.50.0000.00717.08
8.0.30.0090.01117.06
8.0.20.0110.01417.40
8.0.10.0030.00516.98
8.0.00.0080.01116.77
7.4.330.0050.00015.00
7.4.320.0060.00016.52
7.4.300.0030.00316.64
7.4.290.0030.00516.59
7.4.280.0000.00716.54
7.4.270.0070.00016.58
7.4.260.0070.00016.50
7.4.250.0040.00416.63
7.4.240.0040.00316.57
7.4.230.0030.00516.37
7.4.220.0030.01416.55
7.4.210.0100.00816.56
7.4.200.0030.00316.63
7.4.190.0000.00716.59
7.4.160.0060.00916.53
7.4.150.0060.01917.40
7.4.140.0140.00717.86
7.4.130.0100.01216.65
7.4.120.0090.00716.55
7.4.110.0060.01216.55
7.4.100.0110.00616.54
7.4.90.0110.00616.60
7.4.80.0070.01019.39
7.4.70.0130.00616.62
7.4.60.0080.00816.73
7.4.50.0030.00716.53
7.4.40.0120.00422.77
7.4.30.0120.00316.59
7.4.00.0040.00715.08
7.3.330.0050.00013.16
7.3.320.0040.00413.18
7.3.310.0040.00416.10
7.3.300.0030.00316.32
7.3.290.0060.01016.31
7.3.280.0100.00916.28
7.3.270.0060.01117.40
7.3.260.0070.01016.45
7.3.250.0120.00516.44
7.3.240.0060.01016.47
7.3.230.0130.00316.45
7.3.210.0080.00816.40
7.3.200.0090.01219.39
7.3.190.0130.00316.34
7.3.180.0040.01116.36
7.3.170.0110.01116.63
7.3.160.0070.01016.29
7.3.120.0090.00515.81
7.3.110.0080.00715.76
7.3.100.0080.00315.82
7.3.90.0080.00815.83
7.3.80.0040.01115.69
7.3.70.0100.00615.72
7.3.60.0100.00415.70
7.3.50.0100.00715.81
7.3.40.0070.00715.82
7.3.30.0040.00715.88
7.3.20.0050.01016.73
7.3.10.0090.00716.70
7.3.00.0090.00616.72
7.2.330.0130.00316.34
7.2.320.0130.01016.45
7.2.310.0000.01816.63
7.2.300.0090.00616.36
7.2.290.0080.00816.39
7.2.240.0080.01115.94
7.2.230.0080.00915.72
7.2.220.0080.00715.89
7.2.210.0050.01115.82
7.2.200.0090.00615.83
7.2.190.0040.01015.90
7.2.180.0080.00615.85
7.2.170.0110.00315.82
7.2.160.0060.00815.90
7.2.150.0060.01016.89
7.2.140.0050.01016.83
7.2.130.0050.01116.71
7.2.120.0110.00516.82
7.2.110.0020.01116.85
7.2.100.0120.00316.88
7.2.90.0020.01216.76
7.2.80.0050.01116.77
7.2.70.0040.00916.66
7.2.60.0090.00516.79
7.2.50.0040.01016.81
7.2.40.0030.01216.88
7.2.30.0070.00916.77
7.2.20.0090.00316.91
7.2.10.0040.01216.83
7.2.00.0060.00917.59
7.1.330.0050.00916.26
7.1.320.0060.00916.11
7.1.310.0090.00516.21
7.1.300.0110.00316.24
7.1.290.0060.00916.25
7.1.280.0080.00716.13
7.1.270.0060.00616.21
7.1.260.0080.00516.11
7.1.250.0050.00816.27
7.1.200.0080.00515.58
7.1.100.0060.00317.93
7.1.70.0040.00417.06
7.1.60.0090.01519.82
7.1.50.0090.01516.54
7.1.00.0000.08022.54
7.0.200.0000.00816.78
7.0.140.0070.07322.01
7.0.60.0030.08020.08
7.0.50.0130.03017.76
7.0.40.0070.04320.24
7.0.30.0300.07020.04
7.0.20.0370.07320.00
7.0.10.0430.07020.16
7.0.00.0030.05720.17
5.6.280.0000.07321.11
5.6.210.0130.07320.55
5.6.200.0030.08018.08
5.6.190.0030.09320.63
5.6.180.3530.04720.44
5.6.170.0270.08020.50
5.6.160.0000.05720.38
5.6.150.0070.05018.16
5.6.140.0100.07318.11
5.6.130.0030.08318.17
5.6.120.0070.06721.00
5.6.110.0170.07021.00
5.6.100.0130.07721.11
5.6.90.0030.04721.08
5.6.80.0030.08020.42
5.6.70.0230.06020.50
5.5.350.0070.04320.41
5.5.340.0070.04018.04
5.5.330.0030.08720.36
5.5.320.0130.04320.27
5.5.310.0230.05020.34
5.5.300.0030.08718.01
5.5.290.0100.08017.93
5.5.280.0030.05720.94
5.5.270.0030.05720.75
5.5.260.0130.08020.98
5.5.250.0070.07320.55
5.5.240.0070.08320.35
5.4.450.0970.04319.28
5.4.440.0700.05719.49
5.4.430.0070.05719.24
5.4.420.0730.05019.58
5.4.410.1130.05319.34
5.4.400.0830.00018.84
5.4.390.0870.00018.74
5.4.380.0330.05318.67
5.4.370.0370.04318.50
5.4.360.0130.05318.51
5.4.350.0300.05718.75
5.4.340.0200.05318.68
5.4.320.0100.04012.46
5.4.310.0040.04812.46
5.4.300.0080.04112.46
5.4.290.0060.04612.46
5.4.280.0080.04312.36
5.4.270.0070.05018.84
5.4.260.0000.06018.80
5.4.250.0100.04718.75
5.4.240.0170.06318.84
5.4.230.0030.06018.99
5.4.220.0130.06318.82
5.4.210.0130.05018.84
5.4.200.0070.05018.84
5.4.190.0230.03718.73
5.4.180.0130.06318.84
5.4.170.0030.05718.73
5.4.160.0070.05318.97
5.4.150.0170.04318.84
5.4.140.0070.06716.55
5.4.130.0100.05716.31
5.4.120.0070.05016.32
5.4.110.0130.05016.53
5.4.100.0170.03716.34
5.4.90.0100.05316.52
5.4.80.0070.04716.30
5.4.70.0130.04316.23
5.4.60.0070.05016.14
5.4.50.0000.05316.46
5.4.40.0130.06016.44
5.4.30.0100.05316.31
5.4.20.0030.05016.50
5.4.10.0130.04716.44
5.4.00.0100.05015.73
5.3.290.0090.04712.80
5.3.280.0100.05014.61
5.3.270.0030.06014.32
5.3.260.0100.05014.39
5.3.250.0130.06314.63
5.3.240.0170.04014.45
5.3.230.0100.08714.39
5.3.220.0070.05014.67
5.3.210.0130.05714.63
5.3.200.0000.05314.46
5.3.190.0070.05014.43
5.3.180.0170.04014.57
5.3.170.0070.05014.60
5.3.160.0130.07014.45
5.3.150.0100.05314.35
5.3.140.0130.05714.41
5.3.130.0030.07314.58
5.3.120.0070.06714.43
5.3.110.0030.05714.58
5.3.100.0070.05014.07
5.3.90.0030.05314.05
5.3.80.0070.05013.73
5.3.70.0070.05014.13
5.3.60.0170.05314.16
5.3.50.0100.04714.05
5.3.40.0070.04713.98
5.3.30.0100.04313.76
5.3.20.0100.04713.80
5.3.10.0070.04713.58
5.3.00.0030.05013.70
5.2.170.0130.03711.18
5.2.160.0030.04311.17
5.2.150.0000.04711.04
5.2.140.0070.04011.31
5.2.130.0030.04311.14
5.2.120.0070.06011.13
5.2.110.0100.03711.13
5.2.100.0070.04011.03
5.2.90.0030.04011.04
5.2.80.0130.03711.11
5.2.70.0030.04311.11
5.2.60.0030.05711.16
5.2.50.0030.04310.92
5.2.40.0130.04711.10
5.2.30.0070.05711.10
5.2.20.0030.04010.99
5.2.10.0070.04710.95
5.2.00.0030.05010.95
5.1.60.0070.03710.16
5.1.50.0070.03710.00
5.1.40.0030.04010.18
5.1.30.0070.03310.17
5.1.20.0030.03710.34
5.1.10.0130.04310.14
5.1.00.0030.03710.07
5.0.50.0000.0438.62
5.0.40.0030.0378.45
5.0.30.0070.0508.39
5.0.20.0070.0278.16
5.0.10.0070.0238.16
5.0.00.0000.0438.15
4.4.90.0030.0207.26
4.4.80.0030.0277.26
4.4.70.0130.0177.26
4.4.60.0130.0207.26
4.4.50.0070.0277.26
4.4.40.0000.0377.26
4.4.30.0000.0237.26
4.4.20.0000.0237.26
4.4.10.0070.0237.26
4.4.00.0030.0407.26
4.3.110.0000.0237.26
4.3.100.0000.0237.26
4.3.90.0000.0237.26
4.3.80.0100.0337.26
4.3.70.0030.0277.26
4.3.60.0000.0307.26
4.3.50.0030.0237.26
4.3.40.0000.0437.26
4.3.30.0000.0237.26
4.3.20.0030.0207.26
4.3.10.0000.0237.26
4.3.00.0130.0236.97

preferences:
49.39 ms | 401 KiB | 5 Q