3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { return self::getClass(); } } class B extends A { } echo B::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.0070.00718.68
8.3.50.0080.00821.14
8.3.40.0150.00619.02
8.3.30.0070.00718.92
8.3.20.0030.00620.21
8.3.10.0060.00322.04
8.3.00.0070.00022.39
8.2.180.0090.00918.38
8.2.170.0070.00722.96
8.2.160.0130.00320.52
8.2.150.0000.00824.18
8.2.140.0110.00724.66
8.2.130.0070.00326.16
8.2.120.0000.00719.41
8.2.110.0030.00620.52
8.2.100.0040.00818.04
8.2.90.0080.00018.15
8.2.80.0040.00417.97
8.2.70.0000.01017.61
8.2.60.0060.00317.90
8.2.50.0080.00018.07
8.2.40.0000.00918.16
8.2.30.0040.00417.97
8.2.20.0070.00017.55
8.2.10.0000.00717.61
8.2.00.0040.00417.70
8.1.280.0170.00325.92
8.1.270.0040.01220.27
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00322.13
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0000.00818.91
8.1.200.0030.00617.23
8.1.190.0060.00317.40
8.1.180.0040.00418.61
8.1.170.0000.00818.59
8.1.160.0000.00822.09
8.1.150.0060.00318.48
8.1.140.0000.00717.31
8.1.130.0070.00017.80
8.1.120.0040.00417.30
8.1.110.0080.00017.37
8.1.100.0040.00317.31
8.1.90.0030.00617.31
8.1.80.0040.00417.33
8.1.70.0000.00717.35
8.1.60.0090.00017.52
8.1.50.0080.00017.38
8.1.40.0050.00317.45
8.1.30.0060.00317.45
8.1.20.0040.00417.50
8.1.10.0000.00817.38
8.1.00.0000.00817.41
8.0.300.0030.00720.10
8.0.290.0070.00016.93
8.0.280.0000.00718.42
8.0.270.0070.00017.18
8.0.260.0030.00316.85
8.0.250.0030.00316.96
8.0.240.0040.00416.94
8.0.230.0000.00716.80
8.0.220.0070.00016.76
8.0.210.0000.00716.94
8.0.200.0030.00316.83
8.0.190.0030.00316.84
8.0.180.0080.00316.89
8.0.170.0040.00416.91
8.0.160.0000.00716.89
8.0.150.0070.00016.77
8.0.140.0000.00716.84
8.0.130.0030.00313.29
8.0.120.0000.00716.71
8.0.110.0040.00416.90
8.0.100.0000.00716.91
8.0.90.0040.00416.76
8.0.80.0040.01116.84
8.0.70.0070.00016.87
8.0.60.0040.00416.69
8.0.50.0040.00416.94
8.0.30.0080.01117.05
8.0.20.0160.00517.40
8.0.10.0000.00716.89
8.0.00.0130.00516.61
7.4.330.0000.00515.00
7.4.320.0000.00616.49
7.4.300.0030.00316.41
7.4.290.0040.00416.50
7.4.280.0040.00416.48
7.4.270.0000.00616.49
7.4.260.0030.00316.56
7.4.250.0040.00416.50
7.4.240.0030.00316.54
7.4.230.0050.00216.45
7.4.220.0140.01016.43
7.4.210.0070.00716.43
7.4.200.0030.00316.23
7.4.190.0050.00216.68
7.4.160.0060.00916.49
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0040.01616.49
7.4.120.0070.01416.43
7.4.110.0140.00316.54
7.4.100.0120.01216.55
7.4.90.0110.00716.32
7.4.80.0070.01119.39
7.4.70.0060.01116.42
7.4.60.0070.01416.35
7.4.50.0000.00416.31
7.4.40.0070.00722.77
7.4.30.0070.01016.59
7.4.00.0040.01214.89
7.3.330.0050.00013.13
7.3.320.0020.00313.38
7.3.310.0070.00016.38
7.3.300.0040.00416.20
7.3.290.0100.00916.36
7.3.280.0110.00416.33
7.3.270.0130.00317.40
7.3.260.0090.00916.28
7.3.250.0090.01116.42
7.3.240.0040.01916.27
7.3.230.0140.00716.48
7.3.210.0110.00616.21
7.3.200.0120.00619.39
7.3.190.0030.01416.29
7.3.180.0130.00316.34
7.3.170.0080.00816.55
7.3.160.0030.01716.32
7.3.120.0060.01214.68
7.2.330.0100.00716.52
7.2.320.0090.00916.55
7.2.310.0150.00816.49
7.2.300.0160.00016.17
7.2.290.0110.00516.62
7.2.60.0110.00416.89
7.2.00.0000.01418.88
7.1.200.0060.00915.71
7.1.100.0090.00018.11
7.1.70.0000.00717.08
7.1.60.0130.01019.82
7.1.50.0100.01316.80
7.1.00.0070.03022.45
7.0.200.0070.00016.67
7.0.140.0000.07722.01
7.0.60.0100.07319.91
7.0.50.0200.05317.72
7.0.40.0130.08020.13
7.0.30.0170.05720.10
7.0.20.0200.05720.24
7.0.10.0070.07020.09
7.0.00.0000.06020.15
5.6.280.0000.07721.07
5.6.210.0030.07320.52
5.6.200.0070.07018.18
5.6.190.0070.05020.39
5.6.180.0300.07720.64
5.6.170.0130.04720.47
5.6.160.0030.05020.48
5.6.150.0100.08018.12
5.6.140.0000.04318.23
5.6.130.0100.05018.14
5.6.120.0030.05021.00
5.6.110.0100.08721.01
5.6.100.0100.03721.11
5.6.90.0000.04320.96
5.6.80.0070.05020.39
5.5.350.0030.06020.47
5.5.340.0030.08017.99
5.5.330.0000.09020.42
5.5.320.0330.04020.36
5.5.310.0370.08320.24
5.5.300.0030.05317.95
5.5.290.0070.08317.95
5.5.280.0130.08020.73
5.5.270.0070.04720.74
5.5.260.0070.04020.68
5.5.250.0100.07720.68
5.5.240.0230.08020.19
5.4.450.0330.05319.49
5.4.440.1200.03019.52
5.4.430.0570.04319.16
5.4.420.0070.05719.53
5.4.410.0130.05019.35
5.4.400.0070.05719.23
5.4.390.0030.06019.12
5.4.380.0170.04719.12
5.4.370.0200.04719.02
5.4.360.0100.05019.06
5.4.350.0080.03612.02
5.4.340.0090.04112.01
5.4.320.0050.03612.50
5.4.310.0060.03712.50
5.4.300.0040.03612.50
5.4.290.0060.03712.50
5.4.280.0080.05012.39
5.4.270.0140.03812.39
5.4.260.0070.04312.40
5.4.250.0200.04018.76
5.4.240.0100.05018.75
5.4.230.0100.04718.65
5.4.220.0030.06019.09
5.4.210.0070.07319.01
5.4.200.0000.05718.76
5.4.190.0070.05018.97
5.4.180.0030.05718.78
5.4.170.0100.05018.75
5.4.160.0130.04718.72
5.4.150.0230.04018.77
5.4.140.0070.05716.30
5.4.130.0130.04016.42
5.4.120.0070.05316.31
5.4.110.0030.05316.43
5.4.100.0130.04016.38
5.4.90.0130.04016.44
5.4.80.0130.04316.52
5.4.70.0130.06016.58
5.4.60.0070.07316.48
5.4.50.0100.04716.36
5.4.40.0130.04316.49
5.4.30.0130.06016.32
5.4.20.0130.06016.46
5.4.10.0100.04316.59
5.4.00.0030.05315.78
5.3.290.0050.05012.80
5.3.280.0100.04714.63
5.3.270.0070.05314.44
5.3.260.0070.05314.66
5.3.250.0070.05314.68
5.3.240.0070.05314.78
5.3.230.0070.05014.68
5.3.220.0100.06014.72
5.3.210.0070.06314.58
5.3.200.0130.04314.58
5.3.190.0130.06014.78
5.3.180.0000.05314.75
5.3.170.0070.05014.64
5.3.160.0070.05714.73
5.3.150.0100.06714.46
5.3.140.0130.04314.63
5.3.130.0030.05714.71
5.3.120.0000.06014.53
5.3.110.0070.05014.37
5.3.100.0070.05014.05
5.3.90.0070.04713.92
5.3.80.0100.06314.19
5.3.70.0070.05014.23
5.3.60.0130.05014.01
5.3.50.0030.05313.96
5.3.40.0130.04013.78
5.3.30.0130.04014.13
5.3.20.0030.05013.70
5.3.10.0000.05313.73
5.3.00.0100.06013.71
5.2.170.0070.04011.11
5.2.160.0100.03311.22
5.2.150.0030.04711.13
5.2.140.0130.03311.04
5.2.130.0030.04011.32
5.2.120.0030.04011.06
5.2.110.0100.03311.08
5.2.100.0030.05711.17
5.2.90.0100.03711.27
5.2.80.0030.04711.26
5.2.70.0000.04711.31
5.2.60.0070.04311.13
5.2.50.0000.04310.98
5.2.40.0030.04311.08
5.2.30.0000.04311.05
5.2.20.0070.03710.80
5.2.10.0070.03710.83
5.2.00.0070.03710.55
5.1.60.0030.03310.09
5.1.50.0030.04710.09
5.1.40.0070.0339.93
5.1.30.0100.03010.31
5.1.20.0030.03710.57
5.1.10.0070.03310.29
5.1.00.0070.03710.06
5.0.50.0030.0408.70
5.0.40.0030.0278.50
5.0.30.0000.0578.31
5.0.20.0070.0238.14
5.0.10.0000.0308.37
5.0.00.0070.0438.24
4.4.90.0100.0136.51
4.4.80.0000.0236.51
4.4.70.0030.0206.51
4.4.60.0030.0276.51
4.4.50.0000.0236.51
4.4.40.0000.0336.51
4.4.30.0100.0176.51
4.4.20.0030.0276.51
4.4.10.0070.0306.51
4.4.00.0030.0336.51
4.3.110.0000.0306.51
4.3.100.0030.0206.56
4.3.90.0170.0176.56
4.3.80.0000.0336.56
4.3.70.0000.0236.56
4.3.60.0030.0176.56
4.3.50.0000.0336.56
4.3.40.0070.0306.56
4.3.30.0030.0206.56
4.3.20.0000.0236.56
4.3.10.0000.0236.56
4.3.00.0200.01314.52

preferences:
43.59 ms | 401 KiB | 5 Q