3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function doIt() { static::live(); } } class b extends a { function live() { echo "alive!"; } } class c extends b { 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.60.0120.00918.43
8.3.50.0140.00821.20
8.3.40.0140.00318.91
8.3.30.0170.00318.71
8.3.20.0040.00418.65
8.3.10.0080.00020.92
8.3.00.0040.00420.69
8.2.180.0160.00316.63
8.2.170.0140.00022.96
8.2.160.0110.00420.44
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00420.99
8.2.110.0060.00320.32
8.2.100.0070.00417.54
8.2.90.0040.00418.97
8.2.80.0040.00417.97
8.2.70.0090.00317.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00818.09
8.2.30.0000.00721.21
8.2.20.0070.00017.51
8.2.10.0040.00417.59
8.2.00.0050.00317.67
8.1.280.0160.00325.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0070.01022.59
8.1.230.0060.00620.86
8.1.220.0090.00018.77
8.1.210.0080.00018.90
8.1.200.0060.00317.22
8.1.190.0070.00017.50
8.1.180.0040.00418.10
8.1.170.0060.00318.51
8.1.160.0040.00418.88
8.1.150.0000.00718.48
8.1.140.0030.00717.37
8.1.130.0080.00017.73
8.1.120.0000.00717.39
8.1.110.0070.00017.31
8.1.100.0030.00317.40
8.1.90.0000.00717.36
8.1.80.0000.00717.25
8.1.70.0000.00717.27
8.1.60.0030.00617.58
8.1.50.0000.00717.46
8.1.40.0050.00217.45
8.1.30.0000.00717.59
8.1.20.0040.00417.66
8.1.10.0000.00817.46
8.1.00.0000.00817.53
8.0.300.0070.00019.98
8.0.290.0070.00017.05
8.0.280.0000.00718.33
8.0.270.0000.00717.26
8.0.260.0070.00016.73
8.0.250.0040.00416.93
8.0.240.0060.00316.86
8.0.230.0070.00016.95
8.0.220.0030.00316.80
8.0.210.0040.00416.86
8.0.200.0030.00316.75
8.0.190.0060.00316.88
8.0.180.0000.00816.77
8.0.170.0000.00716.74
8.0.160.0040.00316.85
8.0.150.0040.00416.79
8.0.140.0000.00816.77
8.0.130.0030.00313.29
8.0.120.0000.00816.71
8.0.110.0070.00016.87
8.0.100.0040.00416.84
8.0.90.0070.00016.73
8.0.80.0070.01116.72
8.0.70.0000.00716.71
8.0.60.0000.00816.66
8.0.50.0050.00316.85
8.0.30.0080.01117.09
8.0.20.0030.01517.40
8.0.10.0040.00416.98
8.0.00.0100.00816.64
7.4.330.0050.00016.72
7.4.320.0000.00616.45
7.4.300.0040.00416.54
7.4.290.0030.00316.61
7.4.280.0040.00416.41
7.4.270.0080.00016.51
7.4.260.0000.00513.32
7.4.250.0050.00316.54
7.4.240.0030.00316.49
7.4.230.0030.00316.60
7.4.220.0160.01616.47
7.4.210.0070.00916.60
7.4.200.0030.00316.60
7.4.190.0000.00716.68
7.4.160.0080.01216.44
7.4.150.0030.01417.40
7.4.140.0120.00517.86
7.4.130.0150.00516.48
7.4.120.0090.00716.61
7.4.110.0100.00716.52
7.4.100.0130.00716.51
7.4.90.0160.00316.51
7.4.80.0060.01019.39
7.4.70.0080.00816.58
7.4.60.0100.00616.45
7.4.50.0080.00016.59
7.4.40.0080.00722.77
7.4.30.0120.00916.75
7.4.00.0080.00814.87
7.3.330.0030.00513.23
7.3.320.0030.00513.04
7.3.310.0000.00716.13
7.3.300.0000.00616.32
7.3.290.0040.00916.17
7.3.280.0070.00916.26
7.3.270.0090.00917.40
7.3.260.0080.01118.24
7.3.250.0110.00616.45
7.3.240.0070.01416.09
7.3.230.0120.00616.39
7.3.210.0140.00416.20
7.3.200.0070.01419.39
7.3.190.0090.00916.43
7.3.180.0090.00616.05
7.3.170.0030.01316.30
7.3.160.0090.00916.25
7.3.120.0020.01214.69
7.3.110.0080.00814.64
7.3.100.0070.00714.69
7.3.90.0070.00714.80
7.3.80.0040.01114.43
7.3.70.0030.01114.57
7.3.60.0030.01014.85
7.3.50.0030.00914.73
7.3.40.0050.00514.69
7.3.30.0070.00714.91
7.3.20.0040.00716.56
7.3.10.0050.00816.52
7.3.00.0010.00816.42
7.2.330.0140.00316.68
7.2.320.0080.01116.70
7.2.310.0160.00716.33
7.2.300.0030.01316.75
7.2.290.0080.00816.36
7.2.250.0040.01214.77
7.2.240.0060.01314.90
7.2.230.0060.01014.98
7.2.220.0060.00614.98
7.2.210.0110.00414.95
7.2.200.0090.00615.18
7.2.190.0060.00615.04
7.2.180.0040.00715.14
7.2.170.0040.01415.16
7.2.130.0000.01116.70
7.2.120.0000.01216.75
7.2.110.0080.00816.49
7.2.100.0050.01016.83
7.2.90.0070.01116.82
7.2.80.0120.00316.43
7.2.70.0150.00316.61
7.2.60.0070.01116.25
7.2.50.0150.00616.77
7.2.40.0040.01116.55
7.2.30.0140.00017.09
7.2.20.0000.00916.94
7.2.10.0110.00416.54
7.2.00.0070.00718.07
7.1.330.0050.00515.65
7.1.320.0070.00815.77
7.1.310.0030.01015.73
7.1.300.0100.00315.34
7.1.290.0060.00615.64
7.1.280.0030.01015.43
7.1.270.0090.00615.78
7.1.260.0070.01015.84
7.1.250.0030.00915.50
7.1.200.0100.00315.52
7.1.100.0060.00617.91
7.1.70.0040.00818.71
7.1.60.0000.01118.71
7.1.50.0070.00318.71
7.1.40.0000.01418.71
7.1.30.0030.01018.71
7.1.20.0030.00918.71
7.1.10.0040.00418.71
7.1.00.0030.00618.71
7.0.200.0000.01018.71
7.0.190.0000.01118.71
7.0.180.0000.00718.71
7.0.170.0050.00318.71
7.0.160.0090.00018.71
7.0.150.0030.00618.71
7.0.140.0080.00318.71
7.0.130.0030.00718.71
7.0.120.0040.00418.71
7.0.110.0000.00718.71
7.0.100.0060.00318.71
7.0.90.0040.00418.71
7.0.80.0000.00718.71
7.0.70.0060.00318.71
7.0.60.0050.00218.71
7.0.50.0000.01118.71
7.0.40.0060.00918.71
7.0.30.0000.00718.71
7.0.20.0030.01018.71
7.0.10.0050.00218.71
7.0.00.0070.00318.71
5.6.300.0030.04920.76
5.6.290.0070.05720.61
5.6.280.0000.04320.99
5.6.270.0000.04320.99
5.6.260.0030.04520.87
5.6.250.0100.03620.82
5.6.240.0060.03820.83
5.6.230.0030.04521.05
5.6.220.0030.04020.85
5.6.210.0030.04321.02
5.6.200.0030.04421.06
5.6.190.0000.04320.72
5.6.180.0060.04820.94
5.6.170.0000.06721.00
5.6.160.0000.04420.96
5.6.150.0030.04420.77
5.6.140.0130.03520.95
5.6.130.0060.03820.95
5.6.120.0030.05021.05
5.6.110.0060.03920.93
5.6.100.0030.04020.95
5.6.90.0030.04720.81
5.6.80.0000.04820.11
5.6.70.0060.03520.31
5.6.60.0100.03920.36
5.6.50.0000.06020.22
5.6.40.0100.03520.40
5.6.30.0070.04120.36
5.6.20.0030.04720.38
5.6.10.0000.04220.28
5.6.00.0000.04120.36
5.5.380.0030.04418.71
5.5.370.0000.05118.71
5.5.360.0030.04318.71
5.5.350.0000.04118.71
5.5.340.0070.03618.71
5.5.330.0030.05418.71
5.5.320.0030.05818.71
5.5.310.0000.04218.71
5.5.300.0030.03918.71
5.5.290.0070.04018.71
5.5.280.0030.04118.71
5.5.270.0030.04018.71
5.5.260.0000.04418.71
5.5.250.0030.04618.71
5.5.240.0000.04018.71
5.5.230.0000.04218.71
5.5.220.0000.04518.71
5.5.210.0000.04518.71
5.5.200.0000.04518.71
5.5.190.0000.04218.71
5.5.180.0030.03818.71
5.5.160.0040.03918.71
5.5.150.0100.03918.71
5.5.140.0000.04118.71
5.5.130.0000.04118.71
5.5.120.0030.04718.71
5.5.110.0140.02718.71
5.5.100.0030.04018.71
5.5.90.0030.04118.71
5.5.80.0060.07518.71
5.5.70.0030.04718.71
5.5.60.0030.03618.71
5.5.50.0000.04118.71
5.5.40.0030.06118.71
5.5.30.0070.03918.71
5.5.20.0070.03718.71
5.5.10.0000.04518.71
5.5.00.0030.06918.71
5.4.450.0030.04319.56
5.4.440.0030.07119.31
5.4.430.0070.04019.45
5.4.420.0030.04419.38
5.4.410.0060.03819.32
5.4.400.0000.04019.04
5.4.390.0000.04318.98
5.4.380.0030.06419.14
5.4.370.0000.04418.91
5.4.360.0000.04319.06
5.4.350.0070.07719.08
5.4.340.0030.04318.93
5.4.320.0000.05119.20
5.4.310.0060.03419.23
5.4.300.0130.05218.98
5.4.290.0130.05919.14
5.4.280.0030.03918.93
5.4.270.0040.03918.96
5.4.260.0070.03719.18
5.4.250.0030.03718.97
5.4.240.0060.06118.97
5.4.230.0000.04019.07
5.4.220.0060.06818.91
5.4.210.0000.04019.10
5.4.200.0030.04118.97
5.4.190.0000.04518.93
5.4.180.0030.03919.22
5.4.170.0030.08319.05
5.4.160.0100.03518.91
5.4.150.0030.06519.09
5.4.140.0000.04518.71
5.4.130.0060.03518.71
5.4.120.0030.05918.71
5.4.110.0000.05518.71
5.4.100.0000.04618.71
5.4.90.0000.03718.71
5.4.80.0100.05018.71
5.4.70.0070.06618.71
5.4.60.0030.03818.71
5.4.50.0000.03918.71
5.4.40.0070.06818.71
5.4.30.0030.03618.71
5.4.20.0000.04318.71
5.4.10.0070.06118.71
5.4.00.0070.03818.71
5.3.290.0260.03518.71
5.3.280.0030.03618.71
5.3.270.0060.04518.71
5.3.260.0070.03818.71
5.3.250.0030.05218.71
5.3.240.0000.04518.71
5.3.230.0000.03918.71
5.3.220.0100.03018.71
5.3.210.0100.03018.71
5.3.200.0000.04018.71
5.3.190.0000.05618.71
5.3.180.0030.07118.71
5.3.170.0030.05218.71
5.3.160.0000.04018.71
5.3.150.0030.03518.71
5.3.140.0030.05518.71
5.3.130.0060.04118.71
5.3.120.0000.04318.71
5.3.110.0030.08218.71
5.3.100.0000.07418.71
5.3.90.0130.05218.71
5.3.80.0000.04918.71
5.3.70.0030.07118.71
5.3.60.0030.03418.71
5.3.50.0070.05218.71
5.3.40.0030.03518.71
5.3.30.0000.04018.71
5.3.20.0000.04118.71
5.3.10.0000.03718.71
5.3.00.0030.04718.71
5.2.170.0000.03418.71
5.2.160.0030.02618.71
5.2.150.0000.03818.71
5.2.140.0030.03918.71
5.2.130.0000.03118.71
5.2.120.0030.02718.71
5.2.110.0030.04218.71
5.2.100.0030.02818.71
5.2.90.0000.03418.71
5.2.80.0030.02918.71
5.2.70.0030.03318.71
5.2.60.0000.05418.71
5.2.50.0000.04218.71
5.2.40.0030.03318.71
5.2.30.0000.03118.71
5.2.20.0030.02918.71
5.2.10.0030.02718.71
5.2.00.0030.05718.71
5.1.60.0000.03018.71
5.1.50.0030.02218.71
5.1.40.0030.02218.71
5.1.30.0070.02718.71
5.1.20.0000.02718.71
5.1.10.0000.02618.71
5.1.00.0030.04718.71
5.0.50.0030.02118.71
5.0.40.0000.02218.71
5.0.30.0000.04218.71
5.0.20.0070.02918.71
5.0.10.0000.02518.71
5.0.00.0000.04718.71
4.4.90.0030.01318.71
4.4.80.0130.02218.71
4.4.70.0040.01418.71
4.4.60.0130.00718.71
4.4.50.0000.02018.71
4.4.40.0070.03418.71
4.4.30.0000.02718.71
4.4.20.0000.01618.71
4.4.10.0030.01918.71
4.4.00.0030.02718.71
4.3.110.0030.01318.71
4.3.100.0000.01718.71
4.3.90.0000.02018.71
4.3.80.0000.05718.71
4.3.70.0060.03218.71
4.3.60.0000.01618.71
4.3.50.0000.03118.71
4.3.40.0030.03818.71
4.3.30.0000.01918.71
4.3.20.0070.01718.71
4.3.10.0000.02118.71
4.3.00.0000.01618.71

preferences:
39.85 ms | 401 KiB | 5 Q