3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class Foo { function test() { static::test(); } function test2() { self::test(); } function test3() { static::test(); } public static function staticTest() { echo 'jow'.PHP_EOL; } } class Bar extends Foo { } $foo = new Foo(); $foo->test(); $foo->test2(); $foo->test3(); $bar = new Bar(); $bar->test(); $bar->test2(); $bar->test3();

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.02079.62
8.3.50.0720.01873.71
8.3.40.0340.00944.84
8.3.30.0340.00745.27
8.3.20.0210.00346.30
8.3.10.0130.00648.18
8.3.00.0140.00348.66
8.2.180.0720.02372.63
8.2.170.0300.02344.87
8.2.160.0240.01047.89
8.2.150.0210.00344.64
8.2.140.0220.00344.70
8.2.130.0170.00746.55
8.2.120.0110.01144.08
8.2.110.0100.01048.14
8.2.100.0220.01043.91
8.2.90.0100.01045.23
8.2.80.0170.00343.77
8.2.70.0200.00343.63
8.2.60.0140.00743.80
8.2.50.0150.00943.25
8.2.40.0070.01744.03
8.2.30.0080.01243.86
8.2.20.0140.00743.39
8.2.10.0130.00644.45
8.2.00.0100.01343.46
8.1.280.0790.03073.39
8.1.270.0180.00050.16
8.1.260.0140.00745.68
8.1.250.0170.00349.09
8.1.240.0070.00751.93
8.1.230.0240.01445.01
8.1.220.0140.00743.52
8.1.210.0070.01443.23
8.1.200.0160.00643.23
8.1.190.0100.01343.41
8.1.180.0110.01143.35
8.1.170.0110.01144.58
8.1.160.0210.00047.95
8.1.150.0150.00944.63
8.1.140.0140.01443.43
8.1.130.0140.00543.83
8.1.120.0130.00643.52
8.1.110.0170.00343.43
8.1.100.0130.00743.40
8.1.90.0130.00743.34
8.1.80.0100.01043.34
8.1.70.0180.00343.48
8.1.60.0170.00743.66
8.1.50.0100.01043.54
8.1.40.0100.01443.59
8.1.30.0140.00743.59
8.1.20.0110.01143.62
8.1.10.0230.01073.21
8.1.00.0270.01073.22
8.0.300.0160.02273.04
8.0.290.0220.01272.93
8.0.280.0240.01074.04
8.0.270.0190.01572.80
8.0.260.0110.02672.34
8.0.250.0340.00772.37
8.0.240.0240.01072.41
8.0.230.0330.01072.47
8.0.220.0270.00772.38
8.0.210.0070.02672.39
8.0.200.0310.00972.46
8.0.190.0160.02072.38
8.0.180.0190.01672.43
8.0.170.0170.01772.47
8.0.160.0300.01072.44
8.0.150.0230.01072.33
8.0.140.0330.01672.38
8.0.130.0620.013121.75
8.0.120.0200.01672.35
8.0.110.0160.01672.37
8.0.100.0200.01272.38
8.0.90.0210.01472.41
8.0.80.0400.03772.42
8.0.70.0270.01172.25
8.0.60.0170.01772.22
8.0.50.0170.01772.39
8.0.30.0560.04372.52
8.0.20.0600.03372.34
8.0.10.0240.01072.43
8.0.00.0680.02872.26
7.4.330.0330.02068.82
7.4.320.0190.01372.05
7.4.300.0320.01072.07
7.4.290.0390.01672.12
7.4.280.0170.02372.18
7.4.270.0310.01472.10
7.4.260.0330.01072.13
7.4.250.0070.02872.07
7.4.240.0200.01672.13
7.4.230.0200.01672.14
7.4.220.0440.05472.14
7.4.210.0510.02372.00
7.4.200.0290.01671.93
7.4.190.0190.01672.08
7.4.160.0520.03271.76
7.4.150.0620.03372.06
7.4.140.0640.03371.94
7.4.130.0540.04271.97
7.4.120.0500.04172.03
7.4.110.0550.03572.16
7.4.100.0620.02872.15
7.4.90.0560.03672.12
7.4.80.0630.03972.11
7.4.70.0710.04872.02
7.4.60.0560.03371.91
7.4.50.0170.02472.09
7.4.40.0360.02071.88
7.4.30.0480.04172.04
7.4.00.0260.02970.57
7.3.330.0310.024121.54
7.3.320.0330.029121.54
7.3.310.0240.01071.75
7.3.300.0210.01471.81
7.3.290.0460.03571.67
7.3.280.0560.06171.74
7.3.270.0800.05471.81
7.3.260.0760.02571.97
7.3.250.0610.03271.73
7.3.240.0740.02171.93
7.3.230.0700.02671.67
7.3.210.0500.05072.07
7.3.200.0490.04271.76
7.3.190.0520.03571.72
7.3.180.0840.03071.76
7.3.170.0550.03272.01
7.3.160.0610.03571.69
7.3.120.0350.02770.27
7.2.330.0570.05072.18
7.2.320.0400.05372.05
7.2.310.0390.04972.15
7.2.300.0480.04572.05
7.2.290.0480.04472.28
7.2.60.1160.02778.68
7.2.00.3710.03381.13
7.1.200.1860.01377.51
7.1.100.1250.00430.05
7.1.70.1220.02379.02
7.1.60.0330.02779.20
7.1.50.0800.02878.87
7.1.00.0070.09784.18
7.0.200.9500.01074.90
7.0.140.0070.09383.96
7.0.60.0500.04781.18
7.0.50.0270.09773.47
7.0.40.0130.05320.30
7.0.30.0270.05320.06
7.0.20.0430.08320.34
7.0.10.0170.07320.07
7.0.00.0130.07320.23
5.6.280.0270.09085.53
5.6.210.0270.04785.24
5.6.200.0430.09382.80
5.6.190.0230.05785.17
5.6.180.3530.06385.18
5.6.170.0500.10385.16
5.6.160.0330.08385.11
5.6.150.0330.10082.85
5.6.140.0430.09082.90
5.6.130.0330.08082.80
5.6.120.0500.09085.68
5.6.110.0400.10085.85
5.6.100.0500.07785.69
5.6.90.0270.06085.59
5.6.80.0430.08385.04
5.5.350.0200.08085.11
5.5.340.0300.05382.74
5.5.330.0230.05384.74
5.5.320.0270.07084.88
5.5.310.0370.04784.93
5.5.300.0230.06382.75
5.5.290.0330.09382.63
5.5.280.0200.08085.40
5.5.270.0200.07385.51
5.5.260.0200.05385.55
5.5.250.0270.09785.40
5.5.240.0330.09084.89
5.4.450.0800.07384.12
5.4.440.0930.07084.26
5.4.430.0400.08084.06
5.4.420.0600.06783.88
5.4.410.0470.08083.65
5.4.400.0770.07083.52
5.4.390.0670.06083.43
5.4.380.0770.06083.30
5.4.370.0370.04083.32
5.4.360.0230.05383.15
5.4.350.0220.05076.73
5.4.340.0200.06476.72
5.4.320.0220.06077.20
5.4.310.0230.05977.20
5.4.300.0180.07277.20
5.4.290.0270.05477.20
5.4.280.0260.05877.08
5.4.270.0240.05677.07
5.4.260.0260.05777.07
5.4.250.0340.07677.07
5.4.240.0390.07577.07
5.4.230.0360.08077.07
5.4.220.0270.05777.07
5.4.210.0210.05477.06
5.4.200.0200.05477.07
5.4.190.0220.05377.07
5.4.180.0260.04877.06
5.4.170.0190.05377.07
5.4.160.0170.06177.07
5.4.150.0240.05577.07
5.4.140.0220.05576.75
5.4.130.0240.04976.74
5.4.120.0170.05576.70
5.4.110.0180.05476.70
5.4.100.0230.04976.70
5.4.90.0250.05076.69
5.4.80.0220.05776.70
5.4.70.0240.05976.69
5.4.60.0230.05776.68
5.4.50.0280.05076.69
5.4.40.0280.06176.68
5.4.30.0280.07276.67
5.4.20.0250.04876.68
5.4.10.0240.05276.67
5.4.00.0240.05576.16
5.3.290.0270.07276.65
5.3.280.0320.08376.55
5.3.270.0220.07276.56
5.3.260.0340.10576.56
5.3.250.0290.07976.56
5.3.240.0210.07376.56
5.3.230.0310.06876.55
5.3.220.0260.06776.52
5.3.210.0220.06676.52
5.3.200.0250.07676.52
5.3.190.0260.07276.52
5.3.180.0270.07376.52
5.3.170.0220.07076.52
5.3.160.0340.08376.52
5.3.150.0280.09976.52
5.3.140.0190.07276.51
5.3.130.0320.10276.50
5.3.120.0330.09476.50
5.3.110.0280.10076.51
5.3.100.0270.06675.99
5.3.90.0290.06075.97
5.3.80.0230.06475.96
5.3.70.0230.06175.96
5.3.60.0200.07975.95
5.3.50.0240.06575.90
5.3.40.0220.06475.90
5.3.30.0160.06775.86
5.3.20.0250.05675.64
5.3.10.0210.06275.60
5.3.00.0220.06475.59
5.2.170.0080.0349.18
5.2.160.0150.0549.19
5.2.150.0080.0409.18
5.2.140.0090.0309.18
5.2.130.0040.0349.14
5.2.120.0060.0419.14
5.2.110.0080.0349.14
5.2.100.0060.0289.14
5.2.90.0080.0329.14
5.2.80.0030.0359.14
5.2.70.0040.0339.14
5.2.60.0060.0309.09
5.2.50.0030.0329.07
5.2.40.0030.0309.04
5.2.30.0050.0299.02
5.2.20.0070.0289.00
5.2.10.0040.0298.91
5.2.00.0050.0298.79
5.1.60.0030.0268.07
5.1.50.0020.0308.07
5.1.40.0040.0258.05
5.1.30.0070.0258.40
5.1.20.0050.0278.42
5.1.10.0060.0258.15
5.1.00.0010.0298.15
5.0.50.0050.0206.62
5.0.40.0070.0236.48
5.0.30.0060.0326.29
5.0.20.0060.0256.26
5.0.10.0020.0226.24
5.0.00.0050.0316.23
4.4.90.0010.0235.44
4.4.80.0050.0155.44
4.4.70.0030.0165.44
4.4.60.0050.0145.46
4.4.50.0050.0185.47
4.4.40.0030.0345.48
4.4.30.0040.0165.49
4.4.20.0030.0165.50
4.4.10.0030.0165.52
4.4.00.0030.0285.52
4.3.110.0000.0195.52
4.3.100.0060.0165.52
4.3.90.0020.0165.52
4.3.80.0050.0255.52
4.3.70.0050.0125.52
4.3.60.0040.0135.52
4.3.50.0030.0155.52
4.3.40.0040.0235.52
4.3.30.0020.0165.52
4.3.20.0040.0145.52
4.3.10.0000.0185.52
4.3.00.0070.0278.39

preferences:
32.71 ms | 401 KiB | 5 Q