3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nice = 1; $u = 'data://,Good%20Work!'; if (!isset ($u)) $nice = 0; if (ereg ('\.', $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; } 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.0120.00318.46
8.3.50.0220.00921.99
8.3.40.0040.01118.63
8.3.30.0170.00019.27
8.3.20.0070.00020.16
8.3.10.0050.00321.83
8.3.00.0040.00422.32
8.2.180.0090.00916.88
8.2.170.0130.00322.96
8.2.160.0090.00620.99
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.36
8.2.110.0000.00822.13
8.2.100.0120.00017.91
8.2.90.0040.00419.08
8.2.80.0030.00717.97
8.2.70.0130.00017.50
8.2.60.0080.00617.93
8.2.50.0080.00018.07
8.2.40.0000.00718.28
8.2.30.0030.00717.93
8.2.20.0080.00017.59
8.2.10.0030.00519.60
8.2.00.0040.00417.67
8.1.280.0070.00725.92
8.1.270.0040.00422.01
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0090.00319.14
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0040.00717.35
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0060.00618.65
8.1.160.0020.00521.94
8.1.150.0030.00618.67
8.1.140.0000.00717.49
8.1.130.0000.00717.82
8.1.120.0000.00817.44
8.1.110.0080.00017.34
8.1.100.0050.00217.47
8.1.90.0040.00417.41
8.1.80.0040.00417.42
8.1.70.0030.00517.40
8.1.60.0030.00617.59
8.1.50.0000.00717.41
8.1.40.0000.00817.50
8.1.30.0070.00017.61
8.1.20.0000.00817.54
8.1.10.0040.00417.48
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0000.00718.39
8.0.270.0080.00017.16
8.0.260.0030.00316.86
8.0.250.0000.00716.89
8.0.240.0080.00017.01
8.0.230.0040.00416.87
8.0.220.0030.00316.83
8.0.210.0030.00316.86
8.0.200.0030.00317.00
8.0.190.0040.00316.99
8.0.180.0070.00016.97
8.0.170.0050.00316.85
8.0.160.0040.00416.96
8.0.150.0040.00416.88
8.0.140.0000.00916.89
8.0.130.0050.00313.33
8.0.120.0000.00817.02
8.0.110.0040.00416.85
8.0.100.0050.00317.06
8.0.90.0000.00716.88
8.0.80.0090.01016.85
8.0.70.0000.00716.95
8.0.60.0030.00516.96
8.0.50.0070.00016.76
8.0.30.0180.00517.09
8.0.20.0170.00317.40
8.0.10.0040.00417.07
8.0.00.0100.00716.86
7.4.330.0000.00515.09
7.4.320.0030.00316.60
7.4.300.0030.00316.57
7.4.290.0030.00316.51
7.4.280.0070.00016.59
7.4.270.0070.00016.50
7.4.260.0030.00616.34
7.4.250.0070.00016.55
7.4.240.0000.00816.52
7.4.230.0030.00316.59
7.4.220.0100.01716.63
7.4.210.0090.00716.63
7.4.200.0030.00316.33
7.4.190.0040.00416.49
7.4.160.0160.00016.67
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0050.01316.57
7.4.120.0080.01116.41
7.4.110.0040.01516.71
7.4.100.0070.01016.60
7.4.90.0070.01016.68
7.4.80.0140.00419.39
7.4.70.0070.01016.62
7.4.60.0170.00016.61
7.4.50.0030.00616.38
7.4.40.0090.00322.77
7.4.30.0090.00616.29
7.4.00.0050.01314.99
7.3.330.0040.00413.16
7.3.320.0050.00013.20
7.3.310.0040.00416.35
7.3.300.0070.00016.23
7.3.290.0070.00716.21
7.3.280.0090.01316.28
7.3.270.0070.01017.40
7.3.260.0150.00316.43
7.3.250.0170.00216.42
7.3.240.0120.00616.34
7.3.230.0130.01016.52
7.3.210.0070.01116.26
7.3.200.0120.00619.39
7.3.190.0060.01616.52
7.3.180.0040.01116.20
7.3.170.0120.00316.38
7.3.160.0060.01316.68
7.3.120.0140.00314.75
7.3.110.0090.00914.86
7.3.100.0060.00614.68
7.3.90.0030.01014.72
7.3.80.0070.00714.70
7.3.70.0060.00814.77
7.3.60.0050.00714.78
7.3.50.0020.01114.86
7.3.40.0060.00614.66
7.3.30.0040.00914.85
7.3.20.0030.01116.55
7.3.10.0050.01116.56
7.3.00.0050.00616.55
7.2.330.0120.00916.23
7.2.320.0060.01316.44
7.2.310.0100.01016.58
7.2.300.0060.00916.41
7.2.290.0160.00016.57
7.2.250.0070.01114.97
7.2.240.0080.01214.78
7.2.230.0080.00814.79
7.2.220.0090.00314.84
7.2.210.0030.01015.05
7.2.200.0060.00615.00
7.2.190.0080.00614.90
7.2.180.0030.01014.92
7.2.170.0020.00914.84
7.2.130.0040.00816.87
7.2.120.0060.00316.85
7.2.110.0030.01016.81
7.2.100.0000.01216.89
7.2.90.0060.00916.85
7.2.80.0000.01016.57
7.2.70.0070.00716.75
7.2.60.0040.01116.78
7.2.50.0030.00916.81
7.2.40.0100.00316.92
7.2.30.0090.00017.00
7.2.20.0060.00316.73
7.2.10.0120.00316.52
7.2.00.0020.01318.18
7.1.330.0080.00515.44
7.1.320.0030.00915.78
7.1.310.0030.00915.70
7.1.300.0080.00615.53
7.1.290.0070.00815.70
7.1.280.0050.00715.46
7.1.270.0010.01215.66
7.1.260.0020.01315.64
7.1.250.0100.00315.45
7.1.200.0030.00515.43
7.1.100.0030.00517.94
7.1.70.0040.01117.05
7.1.60.0120.01219.82
7.1.50.0000.01116.78
7.1.00.0030.07722.34
7.0.200.0000.00716.68
7.0.140.0070.07021.98
7.0.60.0130.07719.92
7.0.50.0200.06717.88
7.0.40.0030.09019.98
7.0.30.0270.04320.00
7.0.20.0230.06020.02
7.0.10.0100.08020.32
7.0.00.0130.07720.21
5.6.280.0030.07321.07
5.6.210.0100.07720.46
5.6.200.0170.07718.21
5.6.190.0100.04020.56
5.6.180.0330.04720.41
5.6.170.0530.05720.41
5.6.160.0100.05320.44
5.6.150.0030.05318.21
5.6.140.0030.05018.20
5.6.130.0070.08718.19
5.6.120.0030.04320.80
5.6.110.0030.04320.88
5.6.100.0100.08320.97
5.6.90.0100.05020.96
5.6.80.0100.03320.37
5.5.350.0300.06720.41
5.5.340.0100.07317.96
5.5.330.0170.07720.38
5.5.320.0330.04020.29
5.5.310.0230.07020.27
5.5.300.0070.05017.87
5.5.290.0000.04317.95
5.5.280.0100.08020.87
5.5.270.0070.05020.94
5.5.260.0130.06320.64
5.5.250.0030.06720.66
5.5.240.0100.08020.25
5.4.450.0570.04319.43
5.4.440.0400.04019.25
5.4.430.0800.05719.41
5.4.420.0730.04019.54
5.4.410.0530.04018.97
5.4.400.0270.04319.13
5.4.390.0570.03319.13
5.4.380.0270.06318.50
5.4.370.0500.04018.53
5.4.360.0400.06018.61
5.4.350.0370.07718.72
5.4.340.0230.06018.54
5.4.320.0090.04312.46
5.4.310.0070.03712.45
5.4.300.0060.04112.46
5.4.290.0100.04312.46
5.4.280.0030.03712.35
5.4.270.0100.05718.79
5.4.260.0070.07318.79
5.4.250.0100.05718.97
5.4.240.0070.05318.78
5.4.230.0070.05318.76
5.4.220.0230.04019.01
5.4.210.0130.04719.00
5.4.200.0070.05319.00
5.4.190.0030.05718.96
5.4.180.0000.06019.18
5.4.170.0100.07719.07
5.4.160.0170.04718.99
5.4.150.0070.06018.92
5.4.140.0030.06016.46
5.4.130.0030.05716.33
5.4.120.0030.07016.65
5.4.110.0170.05316.40
5.4.100.0070.05316.58
5.4.90.0130.06316.66
5.4.80.0070.05316.59
5.4.70.0130.05316.62
5.4.60.0130.04716.55
5.4.50.0070.05316.32
5.4.40.0200.05716.39
5.4.30.0070.05316.54
5.4.20.0170.04016.48
5.4.10.0100.06016.59
5.4.00.0100.05315.97
5.3.290.0070.04812.80
5.3.280.0000.06014.68
5.3.270.0000.08014.61
5.3.260.0030.05714.76
5.3.250.0100.05014.75
5.3.240.0170.04714.81
5.3.230.0070.08014.75
5.3.220.0170.06314.73
5.3.210.0100.05714.72
5.3.200.0130.05014.66
5.3.190.0030.05714.56
5.3.180.0070.05714.71
5.3.170.0130.04314.55
5.3.160.0070.06014.55
5.3.150.0070.08014.50
5.3.140.0070.05714.72
5.3.130.0100.06014.70
5.3.120.0100.07714.54
5.3.110.0170.04314.62
5.3.100.0200.05314.02
5.3.90.0100.06314.19
5.3.80.0030.07314.00
5.3.70.0170.06014.00
5.3.60.0100.04713.98
5.3.50.0070.05013.76
5.3.40.0100.05714.02
5.3.30.0130.06714.07
5.3.20.0100.05713.77
5.3.10.0200.05013.46
5.3.00.0070.04713.73
5.2.170.0070.06010.96
5.2.160.0130.03711.08
5.2.150.0100.06010.96
5.2.140.0200.04011.07
5.2.130.0000.04711.30
5.2.120.0100.04311.32
5.2.110.0070.04311.16
5.2.100.0100.05011.32
5.2.90.0100.04311.15
5.2.80.0100.05011.08
5.2.70.0170.04311.20
5.2.60.0030.04311.27
5.2.50.0070.05711.26
5.2.40.0000.05011.12
5.2.30.0030.04711.12
5.2.20.0000.06011.06
5.2.10.0070.04011.15
5.2.00.0030.06010.60
5.1.60.0030.0339.87
5.1.50.0000.03710.20
5.1.40.0070.03010.19
5.1.30.0100.03010.63
5.1.20.0070.03310.65
5.1.10.0070.03310.16
5.1.00.0030.04710.36
5.0.50.0030.0308.81
5.0.40.0070.0238.41
5.0.30.0030.0508.40
5.0.20.0070.0238.29
5.0.10.0130.0308.46
5.0.00.0030.0408.26
4.4.90.0030.0308.21
4.4.80.0070.0178.21
4.4.70.0030.0308.21
4.4.60.0000.0238.21
4.4.50.0030.0278.21
4.4.40.0030.0338.21
4.4.30.0030.0208.21
4.4.20.0000.0238.21
4.4.10.0070.0238.21
4.4.00.0000.0378.21
4.3.110.0000.0238.21
4.3.100.0030.0238.21
4.3.90.0030.0208.21
4.3.80.0070.0278.21
4.3.70.0100.0238.21
4.3.60.0000.0238.21
4.3.50.0000.0238.21
4.3.40.0030.0338.21
4.3.30.0030.0208.21
4.3.20.0030.0208.21
4.3.10.0000.0278.21
4.3.00.0170.01315.59

preferences:
44.01 ms | 400 KiB | 5 Q