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(); } 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.0110.00418.18
8.3.50.0120.00921.92
8.3.40.0090.01218.67
8.3.30.0070.01118.82
8.3.20.0110.00620.34
8.3.10.0040.00423.61
8.3.00.0070.01119.26
8.2.180.0070.01418.20
8.2.170.0110.00422.96
8.2.160.0060.00922.11
8.2.150.0000.00824.18
8.2.140.0140.00324.66
8.2.130.0110.00426.16
8.2.120.0040.00419.64
8.2.110.0070.00322.26
8.2.100.0110.00317.62
8.2.90.0030.00519.09
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0000.00718.09
8.2.30.0060.00318.11
8.2.20.0000.00817.54
8.2.10.0040.00417.96
8.2.00.0040.00417.68
8.1.280.0110.00725.92
8.1.270.0040.00418.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00823.80
8.1.230.0040.00718.97
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0090.00017.22
8.1.180.0050.00318.10
8.1.170.0040.00418.68
8.1.160.0050.00222.08
8.1.150.0040.00418.88
8.1.140.0030.00519.09
8.1.130.0050.00317.75
8.1.120.0070.00017.34
8.1.110.0080.00017.44
8.1.100.0000.00717.29
8.1.90.0080.00017.45
8.1.80.0050.00317.37
8.1.70.0030.00317.39
8.1.60.0000.00917.55
8.1.50.0080.00017.41
8.1.40.0030.00517.38
8.1.30.0050.00217.48
8.1.20.0020.00517.59
8.1.10.0070.00017.55
8.1.00.0000.00717.33
8.0.300.0050.00218.77
8.0.290.0040.00416.88
8.0.280.0000.00818.36
8.0.270.0030.00317.13
8.0.260.0030.00317.29
8.0.250.0030.00317.04
8.0.240.0050.00516.98
8.0.230.0070.00017.02
8.0.220.0070.00016.87
8.0.210.0030.00316.78
8.0.200.0030.00316.90
8.0.190.0080.00016.98
8.0.180.0040.00416.86
8.0.170.0080.00016.85
8.0.160.0000.00716.96
8.0.150.0070.00016.84
8.0.140.0040.00416.75
8.0.130.0060.00013.30
8.0.120.0000.00916.76
8.0.110.0000.00816.76
8.0.100.0000.00816.91
8.0.90.0040.00416.88
8.0.80.0080.00816.87
8.0.70.0040.00416.93
8.0.60.0000.00716.73
8.0.50.0070.00016.90
8.0.30.0120.01216.99
8.0.20.0140.00517.40
8.0.10.0030.00616.86
8.0.00.0090.00716.77
7.4.330.0000.00515.03
7.4.320.0070.00016.39
7.4.300.0030.00616.43
7.4.290.0030.00316.58
7.4.280.0000.00716.43
7.4.270.0030.00316.38
7.4.260.0040.00416.54
7.4.250.0040.00416.50
7.4.240.0050.00216.48
7.4.230.0030.00316.34
7.4.220.0140.00716.45
7.4.210.0030.01216.54
7.4.200.0030.00316.64
7.4.160.0150.00616.52
7.4.150.0180.00017.40
7.4.140.0160.00717.86
7.4.130.0110.01016.42
7.4.120.0080.00816.53
7.4.110.0120.00916.35
7.4.100.0090.01216.43
7.4.90.0090.00916.36
7.4.80.0140.00619.39
7.4.70.0060.01216.45
7.4.60.0110.01216.41
7.4.50.0040.00416.50
7.4.40.0070.01416.58
7.4.30.0100.01316.52
7.4.00.0060.00914.75
7.3.330.0000.00713.11
7.3.320.0060.00013.34
7.3.310.0030.00316.27
7.3.300.0030.00316.19
7.3.290.0070.00816.35
7.3.280.0100.00716.32
7.3.270.0060.01117.40
7.3.260.0090.00916.51
7.3.250.0130.00716.31
7.3.240.0070.01016.25
7.3.230.0090.00916.40
7.3.210.0050.01616.46
7.3.200.0100.00619.39
7.3.190.0080.00816.39
7.3.180.0220.00016.36
7.3.170.0050.01116.36
7.3.160.0110.00716.32
7.2.330.0100.00716.21
7.2.320.0140.00316.63
7.2.310.0110.01116.52
7.2.300.0050.01416.56
7.2.290.0030.00816.29
7.2.60.0030.01016.46
7.2.00.0030.00719.18
7.1.200.0090.00415.22
7.1.100.0080.00517.90
7.1.70.0100.00016.97
7.1.60.0100.01319.46
7.1.50.0060.01616.95
7.1.00.0030.07722.54
7.0.200.0040.00416.54
7.0.140.0000.06321.97
7.0.60.0100.08319.96
7.0.50.0030.08317.86
7.0.40.0070.08720.11
7.0.30.0330.07020.33
7.0.20.0370.07020.12
7.0.10.0070.08720.12
7.0.00.0070.08020.23
5.6.280.0000.07721.10
5.6.210.0170.05020.50
5.6.200.0030.04718.13
5.6.190.0030.05320.55
5.6.180.0630.05720.43
5.6.170.0300.05020.57
5.6.160.0030.04720.46
5.6.150.0100.08018.15
5.6.140.0030.04318.17
5.6.130.0170.05018.21
5.6.120.0030.09021.13
5.6.110.0100.06321.00
5.6.100.0130.07321.11
5.6.90.0030.04021.09
5.6.80.0070.08020.52
5.5.350.2800.03320.36
5.5.340.0030.06317.96
5.5.330.0070.07020.57
5.5.320.0000.07720.30
5.5.310.0300.07320.41
5.5.300.0070.06717.97
5.5.290.0070.05017.98
5.5.280.0200.06720.97
5.5.270.0130.03720.86
5.5.260.0200.06320.98
5.5.250.0030.04020.60
5.5.240.0030.07320.33
5.4.450.0170.05719.59
5.4.440.0630.06019.71
5.4.430.0130.05019.56
5.4.420.0100.05319.21
5.4.410.0130.07019.46
5.4.400.0130.04719.38
5.4.390.0300.05018.68
5.4.380.0300.05018.46
5.4.370.0230.05718.73
5.4.360.0330.04718.73
5.4.350.0230.05718.68
5.4.340.0300.05018.48
5.4.320.0270.05318.47
5.4.310.0300.05718.46
5.4.300.0270.06318.68
5.4.290.0270.04718.48
5.4.280.0300.05018.55
5.4.270.0100.07018.45
5.4.260.0170.06018.51
5.4.250.0230.05018.62
5.4.240.0230.06318.72
5.4.230.0300.04718.68
5.4.220.0370.04318.55
5.4.210.0130.06318.71
5.4.200.0330.05016.79
5.4.190.0230.05318.70
5.4.180.0370.04018.73
5.4.170.0170.07318.54
5.4.160.0370.04018.40
5.4.150.0300.05018.69
5.4.140.0230.05316.29
5.4.130.0230.04716.46
5.4.120.0200.05016.17
5.4.110.0300.04316.25
5.4.100.0300.04716.25
5.4.90.0330.04716.17
5.4.80.0270.05016.15
5.4.70.0300.06716.15
5.4.60.0170.05716.26
5.4.50.0300.04016.30
5.4.40.0230.05716.30
5.4.30.0130.06016.34
5.4.20.0230.05016.18
5.4.10.0270.05016.28
5.4.00.0230.05315.89
5.3.290.0130.06314.76
5.3.280.0230.05714.64
5.3.270.0230.06014.60
5.3.260.0200.06014.71
5.3.250.0270.05014.65
5.3.240.0270.05314.63
5.3.230.0300.04714.59
5.3.220.0270.05014.63
5.3.210.0300.05014.75
5.3.200.0330.04014.74
5.3.190.0300.04714.67
5.3.180.0200.06014.69
5.3.170.0400.04014.61
5.3.160.0270.05014.75
5.3.150.0300.05014.60
5.3.140.0370.04014.61
5.3.130.0330.05014.68
5.3.120.0400.05014.56
5.3.110.0370.04314.60
5.3.100.0230.05714.17
5.3.90.0230.05314.04
5.3.80.0230.05014.09
5.3.70.0270.05314.23
5.3.60.0170.06314.11
5.3.50.0300.05313.98
5.3.40.0300.04714.04
5.3.30.0230.05314.04
5.3.20.0200.05313.75
5.3.10.0270.05713.68
5.3.00.0270.05013.71
5.2.170.0130.05011.23
5.2.160.0100.05011.17
5.2.150.0230.03711.18
5.2.140.0230.04011.13
5.2.130.0170.04311.14
5.2.120.0170.04311.23
5.2.110.0200.04011.11
5.2.100.0130.04711.33
5.2.90.0230.03711.21
5.2.80.0230.04711.20
5.2.70.0170.04711.21
5.2.60.0130.04711.16
5.2.50.0170.04711.02
5.2.40.0130.04311.13
5.2.30.0230.04011.00
5.2.20.0170.03710.96
5.2.10.0200.03310.85
5.2.00.0170.04010.75
5.1.60.0100.04310.02
5.1.50.0230.03010.14
5.1.40.0170.0339.98
5.1.30.0230.03010.32
5.1.20.0270.03010.40
5.1.10.0130.04010.20
5.1.00.0170.03310.21
5.0.50.0130.0238.63
5.0.40.0200.0308.51
5.0.30.0070.0478.41
5.0.20.0030.0338.26
5.0.10.0100.0278.31
5.0.00.0130.0538.36
4.4.90.0070.0335.88
4.4.80.0100.0205.90
4.4.70.0030.0275.86
4.4.60.0100.0305.86
4.4.50.0130.0175.88
4.4.40.0070.0405.82
4.4.30.0030.0275.90
4.4.20.0070.0235.93
4.4.10.0070.0235.88
4.4.00.0030.0375.95
4.3.110.0030.0275.86
4.3.100.0100.0175.80
4.3.90.0100.0175.80
4.3.80.0130.0275.87
4.3.70.0170.0105.77
4.3.60.0070.0205.80
4.3.50.0130.0175.77
4.3.40.0070.0335.75
4.3.30.0000.0274.55
4.3.20.0030.0274.51
4.3.10.0070.0204.61
4.3.00.0070.0178.32

preferences:
57.98 ms | 401 KiB | 5 Q