3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function sayHi() { echo "hi"; } } (new Foo)->sayHi();

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.1.70.0040.00417.24
8.1.60.0030.00617.54
8.1.50.0050.00317.32
8.1.40.0040.00417.40
8.1.30.0040.00417.50
8.1.20.0050.00217.48
8.1.10.0000.00717.55
8.1.00.0070.00017.41
8.0.200.0000.00716.78
8.0.190.0000.00716.66
8.0.180.0000.00716.67
8.0.170.0000.00716.79
8.0.160.0050.00316.87
8.0.150.0030.00316.59
8.0.140.0030.00516.60
8.0.130.0030.00313.09
8.0.120.0040.00416.73
8.0.110.0040.00416.82
8.0.100.0040.00416.73
8.0.90.0070.00016.72
8.0.80.0150.00616.69
8.0.70.0000.00716.64
8.0.60.0000.00716.82
8.0.50.0000.00816.69
8.0.30.0130.00516.84
8.0.20.0110.00717.40
8.0.10.0070.00016.89
8.0.00.0150.00216.74
7.4.300.0070.00016.51
7.4.290.0030.00516.36
7.4.280.0030.00716.47
7.4.270.0000.00716.52
7.4.260.0030.00316.51
7.4.250.0070.00016.34
7.4.240.0020.00516.48
7.4.230.0000.00716.48
7.4.220.0120.00616.61
7.4.210.0070.00916.49
7.4.200.0030.00316.63
7.4.190.0030.00316.49
7.4.160.0130.01016.29
7.4.150.0000.01717.40
7.4.140.0130.00817.86
7.4.130.0070.00916.37
7.4.120.0070.01016.52
7.4.110.0090.00916.55
7.4.100.0170.00016.47
7.4.90.0070.01016.49
7.4.80.0120.00719.39
7.4.70.0130.00316.50
7.4.60.0120.00916.40
7.4.50.0000.00816.17
7.4.40.0120.00916.42
7.4.30.0120.00416.43
7.4.00.0040.00714.88
7.3.330.0040.00413.18
7.3.320.0030.00313.25
7.3.310.0030.00316.27
7.3.300.0070.00016.24
7.3.290.0000.01516.22
7.3.280.0080.01116.19
7.3.270.0110.00717.40
7.3.260.0170.00016.46
7.3.250.0100.01216.21
7.3.240.0130.00316.26
7.3.230.0130.00316.39
7.3.210.0060.01316.32
7.3.200.0100.01319.39
7.3.190.0160.00616.20
7.3.180.0100.01016.37
7.3.170.0090.00616.52
7.3.160.0060.00916.26
7.3.120.0050.00214.95
7.2.330.0180.00016.60
7.2.320.0110.00816.47
7.2.310.0130.00716.39
7.2.300.0080.01416.62
7.2.290.0110.00816.68
7.2.60.0090.00316.80
7.2.00.0080.00419.34
7.1.200.0090.00315.50
7.1.100.0030.01418.06
7.1.70.0050.00217.07
7.1.60.0120.00919.46
7.1.50.0210.00916.64
7.1.00.0000.08022.29
7.0.200.0000.00716.34
7.0.140.0030.07321.97
7.0.100.0100.04719.93
7.0.90.0130.08019.86
7.0.80.0030.09019.91
7.0.70.0030.06320.01
7.0.60.0130.04019.87
7.0.50.0100.03720.31
7.0.40.0070.05320.18
7.0.30.0030.04020.09
7.0.20.0070.04020.13
7.0.10.0100.03720.14
7.0.00.0030.04020.09
5.6.280.0100.06721.10
5.6.250.0200.03320.63
5.6.240.0070.08720.64
5.6.230.0030.05320.58
5.6.220.0130.07320.68
5.6.210.0130.06720.60
5.6.200.0030.04321.05
5.6.190.0030.04020.96
5.6.180.0100.03720.96
5.6.170.0030.04320.95
5.6.160.0070.04721.10
5.6.150.0100.03720.96
5.6.140.0100.03721.11
5.6.130.0030.08021.04
5.6.120.0030.04720.93
5.6.110.0000.04321.01
5.6.100.0130.03321.01
5.6.90.0000.04721.12
5.6.80.0000.04320.42
5.6.70.0030.04320.34
5.6.60.0070.03720.45
5.6.50.0070.04020.42
5.6.40.0030.04020.46
5.6.30.0070.03720.37
5.6.20.0030.03720.44
5.6.10.0070.03020.46
5.6.00.0070.03320.41
5.5.380.0100.08720.57
5.5.370.0070.08320.36
5.5.360.0100.08020.36
5.5.350.0030.05320.38
5.5.340.0030.04720.80
5.5.330.0070.04020.91
5.5.320.0070.04020.91
5.5.310.0070.03720.73
5.5.300.0000.05020.91
5.5.290.0070.04720.91
5.5.280.0070.05320.86
5.5.270.0000.07320.79
5.5.260.0030.04320.91
5.5.250.0100.03720.61
5.5.240.0070.03720.29
5.5.230.0100.03320.30
5.5.220.0000.04320.26
5.5.210.0030.04020.16
5.5.200.0000.04320.23
5.5.190.0000.04320.23
5.5.180.0100.03720.17
5.5.160.0100.03319.95
5.5.150.0070.03720.18
5.5.140.0070.04320.18
5.5.130.0070.03320.26
5.5.120.0000.05020.12
5.5.110.0000.04320.12
5.5.100.0100.03720.10
5.5.90.0070.03720.12
5.5.80.0030.03720.17
5.5.70.0030.03720.14
5.5.60.0100.03019.99
5.5.50.0000.04720.11
5.5.40.0070.03320.11
5.5.30.0000.08320.13
5.5.20.0100.07319.91
5.5.10.0000.06320.04
5.5.00.0070.08020.04
5.4.450.0130.05019.23
5.4.440.0100.07319.20
5.4.430.0070.05019.50
5.4.420.0000.05019.27
5.4.410.0070.06019.43
5.4.400.0000.04019.05
5.4.390.0030.04718.88
5.4.380.0000.04019.18
5.4.370.0030.03319.04
5.4.360.0000.04319.13
5.4.350.0030.04719.03
5.4.340.0070.03719.07
5.4.320.0100.03018.90
5.4.310.0070.03319.18
5.4.300.0000.04019.10
5.4.290.0000.04018.87
5.4.280.0030.03718.90
5.4.270.0130.02719.14
5.4.260.0070.03719.14
5.4.250.0000.03319.04
5.4.240.0030.03719.18
5.4.230.0030.03718.89
5.4.220.0000.04319.13
5.4.210.0030.03719.15
5.4.200.0100.06018.86
5.4.190.0130.06019.13
5.4.180.0070.08019.22
5.4.170.0130.07019.11
5.4.160.0130.06319.16
5.4.150.0170.06719.10
5.4.140.0070.07716.41
5.4.130.0100.07316.25
5.4.120.0070.05716.41
5.4.110.0100.07016.42
5.4.100.0070.05316.43
5.4.90.0030.04716.47
5.4.80.0300.02316.30
5.4.70.0070.06716.49
5.4.60.0030.07316.44
5.4.50.0130.06716.29
5.4.40.0130.06316.45
5.4.30.0070.06716.47
5.4.20.0030.07316.36
5.4.10.0000.07016.46
5.4.00.0070.07015.91
5.3.290.0070.03714.67
5.3.280.0030.03014.60
5.3.270.0100.07014.72
5.3.260.0030.07714.61
5.3.250.0100.04014.70
5.3.240.0030.07714.70
5.3.230.0070.08014.72
5.3.220.0130.06314.62
5.3.210.0070.06314.71
5.3.200.0130.06714.66
5.3.190.0100.07314.60
5.3.180.0030.07314.58
5.3.170.0130.07014.68
5.3.160.0000.07714.68
5.3.150.0100.07314.57
5.3.140.0100.07014.68
5.3.130.0030.07714.64
5.3.120.0170.06714.52
5.3.110.0100.05014.66
5.3.100.0070.04014.02
5.3.90.0070.07014.00
5.3.80.0030.04014.12
5.3.70.0100.07014.08
5.3.60.0100.07013.99
5.3.50.0100.06014.00
5.3.40.0070.06713.99
5.3.30.0070.04014.05
5.3.20.0100.07013.70
5.3.10.0070.06313.77
5.3.00.0030.06013.70
5.2.170.0170.02011.13
5.2.160.0030.05011.00
5.2.150.0030.05311.16
5.2.140.0100.06311.15
5.2.130.0100.05711.16
5.2.120.0000.06711.16
5.2.110.0030.06011.18
5.2.100.0130.03311.10
5.2.90.0070.05710.98
5.2.80.0030.05011.12
5.2.70.0000.06711.01
5.2.60.0000.04010.91
5.2.50.0070.04311.11
5.2.40.0030.05711.03
5.2.30.0030.06311.11
5.2.20.0100.05311.05
5.2.10.0100.03711.00
5.2.00.0070.04710.72
5.1.60.0030.05310.04
5.1.50.0070.05010.04
5.1.40.0070.03710.04
5.1.30.0030.04010.37
5.1.20.0030.02710.45
5.1.10.0100.0379.92
5.1.00.0100.04710.14
5.0.50.0100.0409.92
5.0.40.0030.0479.92
5.0.30.0000.0679.92
5.0.20.0070.0309.92
5.0.10.0030.0439.92
5.0.00.0070.0539.92
4.4.90.0000.0279.92
4.4.80.0000.0379.92
4.4.70.0000.0409.92
4.4.60.0030.0309.92
4.4.50.0000.0379.92
4.4.40.0070.0379.92
4.4.30.0000.0279.92
4.4.20.0030.0309.92
4.4.10.0030.0379.92
4.4.00.0030.0409.92
4.3.110.0030.0409.92
4.3.100.0070.0309.92
4.3.90.0030.0339.92
4.3.80.0030.0539.92
4.3.70.0000.0339.92
4.3.60.0030.0239.92
4.3.50.0030.0339.92
4.3.40.0000.0379.92
4.3.30.0000.0409.92
4.3.20.0030.0239.92
4.3.10.0000.0379.92
4.3.00.0000.0209.92

preferences:
34.88 ms | 406 KiB | 5 Q