3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public static function foo() { echo "foo" . PHP_EOL; } } $t = new test(); test->foo();

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.0080.00618.31
8.3.50.0160.00721.99
8.3.40.0060.00918.71
8.3.30.0070.00719.22
8.3.20.0000.00720.20
8.3.10.0060.00320.35
8.3.00.0060.00319.50
8.2.180.0070.00718.29
8.2.170.0140.00722.96
8.2.160.0130.00020.53
8.2.150.0050.00224.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0040.00419.64
8.2.110.0090.00022.21
8.2.100.0100.00018.73
8.1.280.0040.01125.92
8.1.270.0090.00020.73
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00018.64
8.1.230.0030.00618.57
5.4.350.0080.03612.03
5.4.340.0080.03312.03
5.4.320.0040.04012.51
5.4.310.0090.04112.51
5.4.300.0030.04112.51
5.4.290.0040.04212.51
5.4.280.0050.03712.41
5.4.270.0100.03612.41
5.4.260.0050.03812.41
5.4.250.0080.04112.41
5.4.240.0080.03512.41
5.4.230.0060.03912.40
5.4.220.0060.03812.40
5.4.210.0060.03712.40
5.4.200.0030.04212.40
5.4.190.0090.03512.39
5.4.180.0110.04112.39
5.4.170.0070.04012.40
5.4.160.0040.03812.40
5.4.150.0080.03412.40
5.4.140.0080.03612.09
5.4.130.0070.03712.07
5.4.120.0110.03712.03
5.4.110.0140.03312.03
5.4.100.0090.03312.03
5.4.90.0060.04312.03
5.4.80.0070.04112.03
5.4.70.0090.04012.02
5.4.60.0080.04012.03
5.4.50.0050.03812.02
5.4.40.0050.04312.01
5.4.30.0080.04112.01
5.4.20.0150.05512.01
5.4.10.0130.04612.01
5.4.00.0090.04011.50
5.3.290.0040.04612.80
5.3.280.0050.04212.71
5.3.270.0070.04812.73
5.3.260.0110.03912.72
5.3.250.0100.03712.72
5.3.240.0060.04012.72
5.3.230.0080.03712.71
5.3.220.0070.03812.68
5.3.210.0060.04012.68
5.3.200.0060.03712.68
5.3.190.0050.04212.68
5.3.180.0090.03812.68
5.3.170.0060.04112.66
5.3.160.0040.03812.67
5.3.150.0060.04212.68
5.3.140.0070.03612.66
5.3.130.0090.04212.65
5.3.120.0100.03912.66
5.3.110.0080.04012.66
5.3.100.0080.03812.12
5.3.90.0140.05112.11
5.3.80.0070.04212.09
5.3.70.0080.03512.10
5.3.60.0110.03512.08
5.3.50.0050.04912.02
5.3.40.0100.03612.02
5.3.30.0090.03211.98
5.3.20.0060.04011.76
5.3.10.0030.04011.73
5.3.00.0080.04211.72
5.2.170.0040.0319.22
5.2.160.0030.0319.21
5.2.150.0040.0319.22
5.2.140.0070.0299.21
5.2.130.0040.0339.18
5.2.120.0090.0269.18
5.2.110.0070.0289.18
5.2.100.0060.0289.18
5.2.90.0060.0319.18
5.2.80.0060.0349.17
5.2.70.0090.0289.18
5.2.60.0050.0349.13
5.2.50.0100.0339.10
5.2.40.0090.0289.08
5.2.30.0070.0389.05
5.2.20.0060.0389.04
5.2.10.0070.0288.95
5.2.00.0030.0328.80
5.1.60.0040.0268.09
5.1.50.0080.0248.09
5.1.40.0080.0228.07
5.1.30.0040.0308.42
5.1.20.0030.0298.44
5.1.10.0020.0288.16
5.1.00.0030.0268.17
5.0.50.0050.0276.64
5.0.40.0050.0236.50
5.0.30.0060.0376.31
5.0.20.0030.0236.28
5.0.10.0030.0226.26
5.0.00.0070.0296.25
4.4.90.0060.0134.78
4.4.80.0050.0194.75
4.4.70.0030.0164.76
4.4.60.0040.0174.75
4.4.50.0010.0214.77
4.4.40.0030.0284.71
4.4.30.0050.0184.76
4.4.20.0030.0174.84
4.4.10.0040.0164.85
4.4.00.0040.0234.76
4.3.110.0040.0144.67
4.3.100.0010.0164.67
4.3.90.0030.0144.63
4.3.80.0020.0324.58
4.3.70.0050.0204.63
4.3.60.0050.0164.63
4.3.50.0030.0164.63
4.3.40.0050.0264.54
4.3.30.0040.0153.30
4.3.20.0000.0193.28
4.3.10.0020.0173.23
4.3.00.0100.0236.76

preferences:
36.95 ms | 401 KiB | 5 Q