3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); interface IDoSomething { public static function doSomething(); } class One implements IDoSomething { public static function doSomething() { echo "One is doing something\n"; } } class Two extends One { public static function doSomething() { echo "Two is doing something\n"; } } function example(IDoSomething $doer) { $doer::doSomething(); // "unexpected ::" in PHP 5.2 } example(new One()); // One is doing something example(new Two()); // Two is doing something

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.0170.00318.56
8.3.50.0110.01021.99
8.3.40.0120.00918.81
8.3.30.0070.00719.14
8.3.20.0080.00020.26
8.3.10.0080.00023.66
8.3.00.0100.00319.20
8.2.180.0140.00718.16
8.2.170.0070.00722.96
8.2.160.0120.00822.11
8.2.150.0080.00024.18
8.2.140.0140.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.54
8.2.110.0110.00022.25
8.2.100.0040.00817.66
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0090.00017.80
8.2.50.0060.00318.07
8.2.40.0040.00418.09
8.2.30.0050.00317.98
8.2.20.0000.00717.56
8.2.10.0000.00717.88
8.2.00.0050.00317.57
8.1.280.0120.00625.92
8.1.270.0030.00518.57
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0050.00523.73
8.1.230.0080.00319.00
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.10
8.1.190.0080.00017.10
8.1.180.0080.00018.88
8.1.170.0040.00418.59
8.1.160.0000.00721.96
8.1.150.0040.00418.83
8.1.140.0040.00419.09
8.1.130.0000.00717.82
8.1.120.0000.00717.38
8.1.110.0040.00417.45
8.1.100.0000.00717.25
8.1.90.0040.00417.30
8.1.80.0040.00417.40
8.1.70.0000.00717.40
8.1.60.0060.00317.51
8.1.50.0050.00317.50
8.1.40.0030.00517.42
8.1.30.0030.00617.50
8.1.20.0000.00717.52
8.1.10.0070.00017.44
8.1.00.0040.00417.29
8.0.300.0030.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.36
8.0.270.0070.00017.25
8.0.260.0000.00617.21
8.0.250.0030.00317.06
8.0.240.0040.00416.89
8.0.230.0050.00217.04
8.0.220.0030.00316.99
8.0.210.0030.00316.81
8.0.200.0030.00317.04
8.0.190.0060.00316.96
8.0.180.0000.00717.04
8.0.170.0080.00016.88
8.0.160.0070.00016.97
8.0.150.0000.00716.96
8.0.140.0050.00216.89
8.0.130.0060.00013.41
8.0.120.0000.00816.76
8.0.110.0000.00716.86
8.0.100.0000.00716.73
8.0.90.0040.00316.78
8.0.80.0030.01316.95
8.0.70.0040.00416.91
8.0.60.0030.00316.78
8.0.50.0070.00016.93
8.0.30.0070.01617.02
8.0.20.0100.01017.40
8.0.10.0040.00417.00
8.0.00.0070.01116.70
7.4.330.0000.00515.03
7.4.320.0000.00716.54
7.4.300.0090.00016.49
7.4.290.0000.00716.52
7.4.280.0000.00916.50
7.4.270.0040.00416.46
7.4.260.0070.00016.54
7.4.250.0000.00716.46
7.4.240.0020.00516.48
7.4.230.0040.00416.36
7.4.220.0160.01016.45
7.4.210.0090.00616.48
7.4.200.0030.00516.56
7.4.160.0080.00816.37
7.4.150.0170.00817.40
7.4.140.0110.01017.86
7.4.130.0080.01016.50
7.4.120.0110.00816.42
7.4.110.0090.01216.32
7.4.100.0040.01716.51
7.4.90.0170.00016.34
7.4.80.0190.00019.39
7.4.70.0110.00816.48
7.4.60.0090.01016.34
7.4.50.0000.00716.11
7.4.40.0090.00916.60
7.4.30.0090.01316.59
7.4.00.0040.00914.96
7.3.330.0030.00313.44
7.3.320.0050.00013.24
7.3.310.0040.00416.23
7.3.300.0030.00316.23
7.3.290.0090.00616.37
7.3.280.0060.01216.35
7.3.270.0120.00617.40
7.3.260.0060.01016.59
7.3.250.0130.00616.60
7.3.240.0070.01116.70
7.3.230.0160.00416.39
7.3.210.0070.01016.34
7.3.200.0070.01019.39
7.3.190.0070.01016.65
7.3.180.0160.00416.40
7.3.170.0150.00816.64
7.3.160.0030.01316.48
7.3.120.0070.01115.02
7.3.110.0070.01014.78
7.3.100.0110.00414.90
7.3.90.0090.00614.79
7.3.80.0100.00314.86
7.3.70.0080.00314.47
7.3.60.0030.01014.94
7.3.50.0130.00014.85
7.3.40.0080.00814.71
7.3.30.0000.01414.77
7.3.20.0160.00016.75
7.3.10.0000.01516.64
7.3.00.0030.01016.84
7.2.330.0070.01116.69
7.2.320.0080.00916.66
7.2.310.0070.01016.47
7.2.300.0070.01016.46
7.2.290.0140.01116.60
7.2.250.0050.01014.64
7.2.240.0070.01314.89
7.2.230.0070.01014.90
7.2.220.0000.01715.18
7.2.210.0030.01214.75
7.2.200.0000.01214.90
7.2.190.0040.00815.05
7.2.180.0090.00614.78
7.2.170.0030.01315.04
7.2.60.0100.00716.70
7.2.00.0070.01019.10
7.1.330.0090.00615.95
7.1.320.0060.01015.72
7.1.310.0070.00715.72
7.1.300.0040.01215.54
7.1.290.0080.00615.55
7.1.280.0030.01015.84
7.1.270.0000.01315.75
7.1.260.0030.01115.82
7.1.200.0110.00315.83
7.1.100.0040.00718.12
7.1.70.0070.00717.22
7.1.60.0110.01519.46
7.1.50.0030.01316.62
7.1.00.0030.07722.32
7.0.200.0040.00416.72
7.0.140.0030.05021.93
7.0.60.0100.07719.91
7.0.50.0070.07317.86
7.0.40.0100.05020.24
7.0.30.0270.03720.24
7.0.20.0330.04720.16
7.0.10.0030.09020.10
7.0.00.0030.07720.32
5.6.280.0100.06721.02
5.6.210.0130.07020.55
5.6.200.0100.07318.12
5.6.190.0000.04720.49
5.6.180.0400.05320.50
5.6.170.0300.04020.71
5.6.160.0070.08020.71
5.6.150.0130.03318.23
5.6.140.0070.07318.30
5.6.130.0030.06018.17
5.6.120.0100.06721.11
5.6.110.0070.05321.09
5.6.100.0100.07721.12
5.6.90.0070.03721.14
5.6.80.0070.08020.41
5.5.350.0030.07020.38
5.5.340.0130.04717.98
5.5.330.0130.07720.41
5.5.320.0030.05720.20
5.5.310.0330.04320.27
5.5.300.0100.06018.05
5.5.290.0070.07718.07
5.5.280.0030.06720.80
5.5.270.0130.03320.75
5.5.260.0200.06320.98
5.5.250.0070.04320.70
5.5.240.0000.08020.20
5.4.450.0200.06019.32
5.4.440.0630.06019.59
5.4.430.0100.05719.31
5.4.420.0100.05719.31
5.4.410.0230.04019.29
5.4.400.0200.04719.02
5.4.390.0200.05318.68
5.4.380.0300.04318.68
5.4.370.0230.05718.45
5.4.360.0300.05018.42
5.4.350.0200.06018.60
5.4.340.0200.06018.55
5.4.320.0300.06018.47
5.4.310.0370.04318.72
5.4.300.0330.04318.70
5.4.290.0300.04718.60
5.4.280.0270.05318.47
5.4.270.0270.05318.62
5.4.260.0300.05018.59
5.4.250.0330.04718.48
5.4.240.0230.05718.60
5.4.230.0230.05718.61
5.4.220.0270.05018.71
5.4.210.0230.05318.71
5.4.200.0170.05716.60
5.4.190.0370.06718.70
5.4.180.0370.05718.44
5.4.170.0200.06018.61
5.4.160.0200.06018.55
5.4.150.0330.07018.70
5.4.140.0270.05316.35
5.4.130.0230.05016.46
5.4.120.0330.04316.34
5.4.110.0270.05016.44
5.4.100.0300.05016.26
5.4.90.0230.06016.23
5.4.80.0330.04716.24
5.4.70.0330.04716.17
5.4.60.0230.05316.21
5.4.50.0170.05316.21
5.4.40.0230.05016.42
5.4.30.0230.05316.23
5.4.20.0230.05016.20
5.4.10.0330.04316.25
5.4.00.0200.05315.68
5.3.290.0270.05314.64
5.3.280.0300.04714.64
5.3.270.0200.05714.79
5.3.260.0230.05714.71
5.3.250.0300.05014.83
5.3.240.0330.04714.66
5.3.230.0230.05714.58
5.3.220.0230.05314.77
5.3.210.0300.05314.79
5.3.200.0330.04314.63
5.3.190.0200.05714.79
5.3.180.0330.05014.69
5.3.170.0270.05314.70
5.3.160.0270.05314.60
5.3.150.0270.05014.62
5.3.140.0230.05014.66
5.3.130.0270.05314.57
5.3.120.0270.05314.77
5.3.110.0400.05014.68
5.3.100.0230.05314.07
5.3.90.0230.05713.96
5.3.80.0300.04314.01
5.3.70.0270.04714.08
5.3.60.0230.05314.05
5.3.50.0200.05314.05
5.3.40.0200.05313.94
5.3.30.0200.05313.96
5.3.20.0300.04313.72
5.3.10.0330.04013.72
5.3.00.0270.04713.66
5.2.170.0330.03711.28
5.2.160.0170.04711.28
5.2.150.0200.04311.23
5.2.140.0230.04011.25
5.2.130.0230.03711.33
5.2.120.0200.04011.16
5.2.110.0230.04311.16
5.2.100.0200.04011.14
5.2.90.0230.03711.10
5.2.80.0130.05011.14
5.2.70.0200.03711.13
5.2.60.0200.04011.10
5.2.50.0200.04011.23
5.2.40.0170.04011.13
5.2.30.0170.04011.07
5.2.20.0170.03711.07
5.2.10.0100.04310.85
5.2.00.0130.04010.75
5.1.60.0100.03710.07
5.1.50.0170.03310.03
5.1.40.0130.03710.02
5.1.30.0170.03710.46
5.1.20.0130.03710.40
5.1.10.0170.03310.27
5.1.00.0130.03710.15
5.0.50.0130.0278.70
5.0.40.0100.0278.46
5.0.30.0130.0408.36
5.0.20.0100.0278.22
5.0.10.0030.0338.40
5.0.00.0070.0438.21
4.4.90.0100.0205.88
4.4.80.0100.0205.85
4.4.70.0070.0235.86
4.4.60.0100.0205.86
4.4.50.0100.0205.88
4.4.40.0070.0375.87
4.4.30.0070.0235.89
4.4.20.0130.0175.93
4.4.10.0100.0205.93
4.4.00.0130.0305.95
4.3.110.0070.0235.81
4.3.100.0130.0175.80
4.3.90.0100.0175.93
4.3.80.0030.0375.77
4.3.70.0030.0235.82
4.3.60.0070.0205.83
4.3.50.0030.0275.87
4.3.40.0030.0375.73
4.3.30.0000.0274.63
4.3.20.0030.0234.54
4.3.10.0030.0234.49
4.3.00.0030.0238.31

preferences:
39.84 ms | 401 KiB | 5 Q