3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function doIt() { static::live(); } } class b extends a { function live() { static::alive(); } } class c extends b { function alive() { echo "dead!"; } function fun() { self::doIt(); } } $c = new C; $c->fun();

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.70.0120.00316.63
8.3.60.0060.00918.31
8.3.50.0120.00621.14
8.3.40.0090.00618.79
8.3.30.0070.01018.58
8.3.20.0080.00018.65
8.3.10.0040.00420.97
8.3.00.0070.00320.72
8.2.180.0200.00016.50
8.2.170.0200.00022.96
8.2.160.0110.00320.31
8.2.150.0060.00624.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00020.98
8.2.110.0070.00320.38
8.2.100.0060.00617.91
8.2.90.0050.00219.05
8.2.80.0040.00417.97
8.2.70.0110.00017.50
8.2.60.0040.00417.92
8.2.50.0060.00318.07
8.2.40.0050.00318.03
8.2.30.0040.00421.28
8.2.20.0040.00417.43
8.2.10.0050.00317.71
8.2.00.0040.00417.48
8.1.280.0140.00325.92
8.1.270.0040.01123.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00722.48
8.1.230.0040.00720.97
8.1.220.0080.00018.77
8.1.210.0040.00418.96
8.1.200.0080.00317.23
8.1.190.0040.00417.53
8.1.180.0000.00918.10
8.1.170.0030.00620.25
8.1.160.0080.00018.80
8.1.150.0070.00018.50
8.1.140.0080.00017.38
8.1.130.0030.00317.73
8.1.120.0020.00517.43
8.1.110.0000.00817.38
8.1.100.0000.00717.39
8.1.90.0070.00017.36
8.1.80.0080.00017.27
8.1.70.0000.00717.37
8.1.60.0080.00017.52
8.1.50.0040.00417.48
8.1.40.0090.00017.44
8.1.30.0000.00817.47
8.1.20.0040.00417.60
8.1.10.0040.00417.59
8.1.00.0040.00417.55
8.0.300.0040.00419.85
8.0.290.0040.00417.16
8.0.280.0000.00718.35
8.0.270.0000.00717.25
8.0.260.0040.00416.77
8.0.250.0050.00216.95
8.0.240.0060.00316.90
8.0.230.0070.00016.94
8.0.220.0030.00316.88
8.0.210.0000.00716.73
8.0.200.0000.00616.84
8.0.190.0000.00816.86
8.0.180.0040.00416.80
8.0.170.0060.00316.75
8.0.160.0030.00316.66
8.0.150.0040.00416.70
8.0.140.0040.00416.84
8.0.130.0030.00313.21
8.0.120.0080.00016.79
8.0.110.0000.00716.86
8.0.100.0050.00316.87
8.0.90.0040.00416.64
8.0.80.0060.01016.89
8.0.70.0000.00716.74
8.0.60.0050.00216.78
8.0.50.0000.00716.75
8.0.30.0120.00617.26
8.0.20.0100.00817.40
8.0.10.0000.00816.98
8.0.00.0160.00216.78
7.4.330.0020.00216.67
7.4.320.0000.00616.52
7.4.300.0000.00616.48
7.4.290.0000.00716.51
7.4.280.0000.00716.48
7.4.270.0070.00016.52
7.4.260.0030.00313.19
7.4.250.0080.00016.50
7.4.240.0050.00316.59
7.4.230.0030.00316.66
7.4.220.0080.01116.36
7.4.210.0060.00816.54
7.4.200.0030.00316.40
7.4.190.0030.00316.54
7.4.160.0170.00316.32
7.4.150.0110.00817.40
7.4.140.0100.00717.86
7.4.130.0080.01016.44
7.4.120.0120.00616.42
7.4.110.0120.00416.39
7.4.100.0060.01916.61
7.4.90.0130.00616.34
7.4.80.0080.00819.39
7.4.70.0130.00316.56
7.4.60.0100.00716.60
7.4.50.0060.00316.59
7.4.40.0090.00922.77
7.4.30.0150.00016.32
7.4.00.0150.00015.00
7.3.330.0070.00013.23
7.3.320.0050.00213.00
7.3.310.0040.00416.05
7.3.300.0040.00416.28
7.3.290.0140.00616.22
7.3.280.0080.00616.20
7.3.270.0060.01217.40
7.3.260.0090.00918.24
7.3.250.0110.00516.44
7.3.240.0150.00316.27
7.3.230.0120.01016.39
7.3.210.0100.00716.46
7.3.200.0110.00719.39
7.3.190.0120.01216.32
7.3.180.0100.00516.32
7.3.170.0070.00916.27
7.3.160.0170.00016.54
7.3.120.0000.01514.52
7.2.330.0040.01216.71
7.2.320.0200.00416.68
7.2.310.0120.00616.75
7.2.300.0150.00416.66
7.2.290.0060.01116.78
7.2.00.0040.00419.27
7.1.200.0000.01215.77
7.1.100.0060.00617.94
7.1.70.0040.00416.98
7.1.60.0000.01217.18
7.1.50.0030.01016.86
7.1.40.0080.00316.58
7.1.30.0110.00016.44
7.1.20.0030.01016.44
7.1.10.0070.00016.52
7.1.00.0000.00816.71
7.0.200.0040.00716.80
7.0.190.0070.00716.76
7.0.180.0000.00816.44
7.0.170.0030.00616.44
7.0.160.0000.00716.44
7.0.150.0030.00616.44
7.0.140.0000.00816.44
7.0.130.0000.00716.56
7.0.120.0070.00716.44
7.0.110.0060.00916.44
7.0.100.0050.00516.44
7.0.90.0000.00916.44
7.0.80.0000.00816.44
7.0.70.0080.00016.44
7.0.60.0030.00516.44
7.0.50.0080.00016.44
7.0.40.0030.01316.44
7.0.30.0060.01316.44
7.0.20.0040.00416.44
7.0.10.0000.00916.44
7.0.00.0040.00416.44
5.6.300.0030.04220.80
5.6.290.0000.04520.80
5.6.280.0070.06620.98
5.6.270.0100.08820.98
5.6.260.0030.04520.81
5.6.250.0090.03820.97
5.6.240.0070.03920.87
5.6.230.0070.03821.05
5.6.220.0030.04020.82
5.6.210.0030.04220.61
5.6.200.0030.04120.83
5.6.190.0040.04020.87
5.6.180.0070.04620.92
5.6.170.0030.04020.83
5.6.160.0030.04620.86
5.6.150.0030.04320.96
5.6.140.0000.04421.01
5.6.130.0070.05120.80
5.6.120.0030.07120.96
5.6.110.0100.03320.82
5.6.100.0070.05020.86
5.6.90.0070.05120.80
5.6.80.0000.04920.40
5.6.70.0000.04620.14
5.6.60.0000.04320.20
5.6.50.0030.04120.35
5.6.40.0000.04220.37
5.6.30.0000.04220.29
5.6.20.0000.04220.28
5.6.10.0030.04120.38
5.6.00.0070.03520.40
5.5.380.0030.03817.67
5.5.370.0100.03317.43
5.5.360.0130.03517.52
5.5.350.0000.04217.62
5.5.340.0000.04218.11
5.5.330.0000.06418.01
5.5.320.0030.03918.06
5.5.310.0060.04217.84
5.5.300.0030.04117.68
5.5.290.0030.04518.05
5.5.280.0000.04518.09
5.5.270.0130.04718.09
5.5.260.0000.04618.11
5.5.250.0070.04717.87
5.5.240.0030.06817.09
5.5.230.0030.03817.51
5.5.220.0000.04117.12
5.5.210.0000.04117.38
5.5.200.0030.03717.08
5.5.190.0000.05317.19
5.5.180.0060.03517.19
5.5.160.0060.04117.42
5.5.150.0070.05117.09
5.5.140.0030.03817.44
5.5.130.0030.03617.09
5.5.120.0030.03817.05
5.5.110.0060.03717.05
5.5.100.0000.04417.38
5.5.90.0070.04417.37
5.5.80.0030.03516.95
5.5.70.0000.05517.31
5.5.60.0060.03817.34
5.5.50.0030.04017.30
5.5.40.0100.03217.06
5.5.30.0030.04016.94
5.5.20.0000.04717.32
5.5.10.0030.04117.40
5.5.00.0000.04217.32
5.4.450.0070.08119.28
5.4.440.0070.03519.56
5.4.430.0190.03619.23
5.4.420.0070.08419.42
5.4.410.0030.08019.17
5.4.400.0070.03618.99
5.4.390.0030.08318.95
5.4.380.0100.03519.17
5.4.370.0130.03218.98
5.4.360.0030.04019.20
5.4.350.0030.03719.05
5.4.340.0000.04218.98
5.4.320.0070.03518.92
5.4.310.0030.05519.05
5.4.300.0070.04619.14
5.4.290.0030.03618.98
5.4.280.0070.03518.98
5.4.270.0030.03719.06
5.4.260.0030.03818.96
5.4.250.0100.03219.06
5.4.240.0030.03918.97
5.4.230.0000.04219.22
5.4.220.0030.03819.10
5.4.210.0060.03819.22
5.4.200.0030.04019.23
5.4.190.0030.04318.97
5.4.180.0030.03619.22
5.4.170.0060.03518.95
5.4.160.0030.03719.17
5.4.150.0070.07519.10
5.4.140.0000.07816.56
5.4.130.0030.03816.79
5.4.120.0000.04016.51
5.4.110.0000.03816.80
5.4.100.0060.03816.54
5.4.90.0030.03716.79
5.4.80.0000.03716.77
5.4.70.0100.05316.65
5.4.60.0100.05416.46
5.4.50.0030.03316.45
5.4.40.0000.05316.72
5.4.30.0000.03816.45
5.4.20.0000.04216.73
5.4.10.0030.04116.46
5.4.00.0000.05416.44
5.3.290.0000.04016.44
5.3.280.0030.06216.44
5.3.270.0030.03716.44
5.3.260.0100.03016.44
5.3.250.0030.07816.44
5.3.240.0000.05316.44
5.3.230.0040.03916.44
5.3.220.0030.03616.44
5.3.210.0100.03016.44
5.3.200.0030.03916.44
5.3.190.0000.03916.44
5.3.180.0070.07316.44
5.3.170.0000.04416.44
5.3.160.0100.03616.44
5.3.150.0030.04816.44
5.3.140.0000.04016.44
5.3.130.0000.04116.44
5.3.120.0030.04116.44
5.3.110.0070.03516.44
5.3.100.0030.07516.44
5.3.90.0000.04116.44
5.3.80.0030.07616.44
5.3.70.0030.07416.44
5.3.60.0030.04716.44
5.3.50.0070.03316.44
5.3.40.0000.04116.44
5.3.30.0000.04216.44
5.3.20.0000.04116.44
5.3.10.0000.03816.44
5.3.00.0070.06616.44
5.2.170.0030.02816.44
5.2.160.0000.03016.44
5.2.150.0030.02916.44
5.2.140.0060.02616.44
5.2.130.0030.06016.44
5.2.120.0000.03716.44
5.2.110.0000.03016.44
5.2.100.0030.06316.44
5.2.90.0060.03816.44
5.2.80.0060.02516.44
5.2.70.0000.04816.44
5.2.60.0030.04316.44
5.2.50.0040.02816.44
5.2.40.0030.03716.44
5.2.30.0030.03416.44
5.2.20.0030.03616.44
5.2.10.0000.04216.44
5.2.00.0070.05516.44
5.1.60.0000.05816.44
5.1.50.0030.06016.44
5.1.40.0030.02416.44
5.1.30.0030.02516.44
5.1.20.0000.02916.44
5.1.10.0030.02416.44
5.1.00.0030.03616.44
5.0.50.0030.02016.44
5.0.40.0000.03916.44
5.0.30.0030.04916.44
5.0.20.0030.01816.44
5.0.10.0000.06216.44
5.0.00.0030.04116.44
4.4.90.0000.03616.44
4.4.80.0000.03516.44
4.4.70.0000.02016.44
4.4.60.0030.02516.44
4.4.50.0000.01616.44
4.4.40.0030.02716.44
4.4.30.0000.02216.44
4.4.20.0030.01516.44
4.4.10.0060.01616.44
4.4.00.0030.04016.44
4.3.110.0060.01516.44
4.3.100.0000.02416.44
4.3.90.0040.02516.44
4.3.80.0040.02516.44
4.3.70.0000.02216.44
4.3.60.0000.03716.44
4.3.50.0060.02416.44
4.3.40.0030.02616.44
4.3.30.0030.01816.44
4.3.20.0030.03716.44
4.3.10.0030.02016.44
4.3.00.0030.01716.44

preferences:
37.29 ms | 401 KiB | 5 Q