3v4l.org

run code in 300+ PHP versions simultaneously
<?php class otherClass { public static function f1 () { echo "\n".__CLASS__; echo "\n".__FUNCTION__; parentClass::f2(); } } class parentClass { public static function f2 () { echo "\n".__CLASS__; echo "\n".__FUNCTION__; } } class childClass extends parentClass { public static function f3 () { echo "\n".__CLASS__; echo "\n".__FUNCTION__; } } otherClass::f1();

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.0090.00616.63
8.3.50.0070.01117.35
8.3.40.0100.01018.67
8.3.30.0140.00318.72
8.3.20.0060.00318.60
8.3.10.0040.00418.52
8.3.00.0040.00419.25
8.2.180.0070.00716.38
8.2.170.0180.00322.96
8.2.160.0120.00318.71
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0000.00920.74
8.2.110.0030.00621.05
8.2.100.0050.01017.72
8.2.90.0000.00919.35
8.2.80.0000.00719.19
8.2.70.0080.00017.63
8.2.60.0060.00617.93
8.2.50.0000.00818.07
8.2.40.0000.00717.93
8.2.30.0090.00318.02
8.2.20.0000.01017.52
8.2.10.0030.00617.47
8.2.00.0040.00417.53
8.1.280.0070.01025.92
8.1.270.0030.00324.66
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00820.53
8.1.230.0090.00420.97
8.1.220.0060.00317.74
8.1.210.0060.00618.90
8.1.200.0040.00417.10
8.1.190.0000.00717.40
8.1.180.0060.00618.10
8.1.170.0040.00420.61
8.1.160.0040.00418.67
8.1.150.0040.00418.50
8.1.140.0000.00717.21
8.1.130.0070.00017.75
8.1.120.0050.00517.36
8.1.110.0040.00417.35
8.1.100.0030.00417.25
8.1.90.0070.00017.33
8.1.80.0040.00417.32
8.1.70.0000.00817.27
8.1.60.0000.00717.52
8.1.50.0030.00617.30
8.1.40.0040.00417.44
8.1.30.0030.00517.52
8.1.20.0000.00717.45
8.1.10.0040.00417.47
8.1.00.0040.00417.35
8.0.300.0050.00219.87
8.0.290.0000.00816.63
8.0.280.0030.00318.32
8.0.270.0030.00317.25
8.0.260.0060.00316.85
8.0.250.0040.00416.88
8.0.240.0050.00316.78
8.0.230.0050.00216.74
8.0.220.0000.00616.74
8.0.210.0000.00616.86
8.0.200.0070.00016.96
8.0.190.0040.00416.75
8.0.180.0000.00716.71
8.0.170.0040.00416.73
8.0.160.0030.00316.74
8.0.150.0050.00316.80
8.0.140.0040.00416.59
8.0.130.0000.00613.23
8.0.120.0040.00416.60
8.0.110.0000.00816.65
8.0.100.0040.00416.59
8.0.90.0000.00716.72
8.0.80.0070.01116.73
8.0.70.0080.00016.67
8.0.60.0000.00716.62
8.0.50.0040.00416.73
8.0.30.0090.01016.99
8.0.20.0100.01317.10
8.0.10.0040.00416.84
8.0.00.0100.01216.82
7.4.330.0000.00412.79
7.4.320.0040.00416.37
7.4.300.0030.00316.50
7.4.290.0000.00716.57
7.4.280.0070.00016.57
7.4.270.0000.00716.43
7.4.260.0030.00313.25
7.4.250.0040.00416.49
7.4.240.0060.00116.50
7.4.230.0030.00316.63
7.4.220.0140.00416.39
7.4.210.0050.01016.52
7.4.200.0030.00316.53
7.4.190.0030.00316.54
7.4.160.0090.00616.36
7.4.150.0100.00716.50
7.4.140.0120.00916.47
7.4.130.0100.00716.44
7.4.120.0090.00816.57
7.4.110.0120.00916.50
7.4.100.0110.00716.51
7.4.90.0030.01316.53
7.4.80.0090.00616.41
7.4.70.0130.00616.29
7.4.60.0100.01016.58
7.4.50.0100.00216.43
7.4.40.0070.00716.07
7.4.30.0100.00616.50
7.4.00.0060.00614.99
7.3.330.0060.00013.04
7.3.320.0030.00313.04
7.3.310.0040.00416.22
7.3.300.0070.00016.26
7.3.290.0040.01616.16
7.3.280.0030.01216.21
7.3.270.0070.01116.29
7.3.260.0140.00316.42
7.3.250.0110.00916.38
7.3.240.0070.01016.27
7.3.230.0100.01016.21
7.3.210.0090.00916.37
7.3.200.0060.01619.39
7.3.190.0120.00316.50
7.3.180.0120.00616.41
7.3.170.0090.00616.46
7.3.160.0060.00916.34
7.3.120.0120.00014.49
7.3.10.0130.00616.29
7.3.00.0140.00916.42
7.2.330.0030.01516.61
7.2.320.0060.01216.53
7.2.310.0110.00716.57
7.2.300.0140.00316.64
7.2.290.0090.00616.67
7.2.130.0110.00316.24
7.2.120.0030.01016.62
7.2.110.0000.00816.56
7.2.100.0070.00416.68
7.2.90.0060.00316.70
7.2.80.0090.00616.32
7.2.70.0120.00416.53
7.2.60.0090.00316.68
7.2.50.0040.00816.48
7.2.40.0000.01116.61
7.2.30.0130.00316.48
7.2.20.0060.00616.91
7.2.10.0080.00316.27
7.2.00.0080.00718.20
7.1.250.0000.01215.30
7.1.200.0050.00315.55
7.1.100.0250.00717.59
7.1.70.0030.00517.17
7.1.60.0100.01319.40
7.1.50.0200.01334.71
7.1.00.0070.07022.36
7.0.200.0060.00314.87
7.0.140.0070.07022.16
7.0.120.0030.07022.04
7.0.60.0130.08020.00
7.0.50.0070.08317.95
7.0.40.0030.04717.70
7.0.30.0100.08717.84
7.0.20.0100.03717.72
7.0.10.0170.07317.80
7.0.00.0030.08017.74
5.6.210.0170.06720.61
5.6.200.0070.04318.19
5.6.190.0030.05318.19
5.6.180.0170.05718.19
5.6.170.0030.08018.29
5.6.160.0100.08018.19
5.6.150.0100.08318.15
5.6.140.0000.09018.19
5.6.130.0000.05018.18
5.6.120.0030.05718.15
5.6.110.0170.07718.24
5.6.100.0100.07318.14
5.6.90.0100.04718.13
5.6.80.0070.08017.66
5.6.70.0070.04717.57
5.6.60.0100.07317.54
5.6.50.0130.07017.57
5.6.40.0100.06317.55
5.6.30.0030.07017.64
5.6.20.0130.07317.62
5.6.10.0030.05717.55
5.6.00.0100.06317.57
5.5.350.0030.08720.32
5.5.340.0130.07718.07
5.5.330.0100.07017.95
5.5.320.0070.08017.97
5.5.310.0070.06318.08
5.5.300.0030.04717.92
5.5.290.0000.08718.04
5.5.280.0100.07018.01
5.5.270.0070.07017.98
5.5.260.0130.07317.95
5.5.250.0000.05017.88
5.5.240.0000.08717.47
5.5.230.0130.07317.31
5.5.220.0100.07317.36
5.5.210.0070.04717.39
5.5.200.0070.05317.41
5.5.190.0030.05317.33
5.5.180.0100.03317.32
5.5.160.0070.04017.31
5.5.150.0130.07017.34
5.5.140.0030.07717.29
5.5.130.0070.07717.34
5.5.120.0000.09017.30
5.5.110.0130.05717.33
5.5.100.0030.07717.24
5.5.90.0100.06717.18
5.5.80.0000.06717.23
5.5.70.0030.04717.20
5.5.60.0070.06717.20
5.5.50.0100.04717.32
5.5.40.0070.06017.22
5.5.30.0130.07017.19
5.5.20.0070.06717.25
5.5.10.0030.04017.27
5.5.00.0070.03317.31
5.4.450.0000.08319.47
5.4.440.0170.07019.42
5.4.430.0070.04019.34
5.4.420.0100.05319.37
5.4.410.0070.07719.24
5.4.400.0200.06019.04
5.4.390.0070.07719.04
5.4.380.0100.04319.05
5.4.370.0070.07019.27
5.4.360.0130.04018.98
5.4.350.0070.05319.05
5.4.340.0070.03719.16
5.4.320.0100.03719.02
5.4.310.0030.09319.11
5.4.300.0030.07719.02
5.4.290.0070.06719.09
5.4.280.0070.08019.01
5.4.270.0130.07019.02
5.4.260.0100.03318.99
5.4.250.0100.04719.04
5.4.240.0070.05719.12
5.4.230.0100.04719.02
5.4.220.0000.05019.02
5.4.210.0030.05019.11
5.4.200.0070.04719.31
5.4.190.0130.07319.04
5.4.180.0000.04319.26
5.4.170.0070.04319.11
5.4.160.0070.07018.96
5.4.150.0000.07019.02
5.4.140.0030.03716.38
5.4.130.0200.02316.43
5.4.120.0000.03716.44
5.4.110.0000.04316.45
5.4.100.0070.03316.45
5.4.90.0030.05316.46
5.4.80.0070.05316.33
5.4.70.0000.04716.30
5.4.60.0130.03716.46
5.4.50.0070.03316.45
5.4.40.0100.03016.34
5.4.30.0070.03316.45
5.4.20.0100.07316.45
5.4.10.0130.06716.41
5.4.00.0070.07015.83
5.3.290.0100.07014.71
5.3.280.0100.06014.45
5.3.270.0030.05314.66
5.3.260.0030.07014.65
5.3.250.0070.04014.66
5.3.240.0030.03714.67
5.3.230.0000.04014.62
5.3.220.0030.03714.63
5.3.210.0070.04314.52
5.3.200.0030.04014.58
5.3.190.0000.05014.69
5.3.180.0100.06014.52
5.3.170.0100.05014.61
5.3.160.0030.03714.57
5.3.150.0030.03714.60
5.3.140.0070.04014.52
5.3.130.0030.07314.52
5.3.120.0030.04014.77
5.3.110.0130.06714.59
5.3.100.0070.04014.09
5.3.90.0100.03713.98
5.3.80.0030.04014.09
5.3.70.0030.04314.07
5.3.60.0000.04014.01
5.3.50.0100.03713.84
5.3.40.0000.04013.98
5.3.30.0030.06013.95
5.3.20.0030.03713.75
5.3.10.0030.05313.50
5.3.00.0000.05013.65
5.2.170.0030.03311.23
5.2.160.0070.03311.12
5.2.150.0000.04011.19
5.2.140.0030.02711.19
5.2.130.0070.02711.14
5.2.120.0030.02711.11
5.2.110.0070.03311.12
5.2.100.0000.03011.14
5.2.90.0030.02711.13
5.2.80.0030.06311.16
5.2.70.0030.02710.99
5.2.60.0070.02711.02
5.2.50.0000.05711.08
5.2.40.0030.03010.96
5.2.30.0000.03311.05
5.2.20.0100.05710.80
5.2.10.0000.03310.91
5.2.00.0000.03010.82
5.1.60.0070.0509.99
5.1.50.0000.04310.07
5.1.40.0000.03310.04
5.1.30.0030.02710.26
5.1.20.0000.02710.20
5.1.10.0070.0479.99
5.1.00.0070.04310.15
5.0.50.0030.0479.23
5.0.40.0170.0279.23
5.0.30.0070.0509.23
5.0.20.0070.0179.23
5.0.10.0100.0409.23
5.0.00.0070.0509.23
4.4.90.0030.0139.23
4.4.80.0030.0309.23
4.4.70.0000.0239.23
4.4.60.0000.0179.23
4.4.50.0000.0179.23
4.4.40.0000.0509.23
4.4.30.0070.0139.23
4.4.20.0030.0179.23
4.4.10.0070.0209.23
4.4.00.0030.0379.23
4.3.110.0030.0209.23
4.3.100.0070.0279.23
4.3.90.0030.0139.23
4.3.80.0030.0379.23
4.3.70.0030.0179.23
4.3.60.0000.0279.23
4.3.50.0030.0239.23
4.3.40.0030.0539.23
4.3.30.0070.0309.23
4.3.20.0070.0309.23
4.3.10.0000.0379.23
4.3.00.0030.0209.23

preferences:
31.72 ms | 401 KiB | 5 Q