3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { public function run() { Example::test1(); static::test2(); //$this->test3(); } public static function __callStatic($name, array $arguments) { echo __METHOD__.'('.$name.')'."\n"; } // public function __call($name, array $arguments) { // echo __METHOD__.'('.$name.')'."\n"; //} } $e = new Example(); $e->run();

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.0160.00316.25
8.3.50.0120.00522.07
8.3.40.0120.00318.85
8.3.30.0070.00718.81
8.3.20.0060.00320.23
8.3.10.0080.00023.48
8.3.00.0040.00419.14
8.2.180.0070.00716.75
8.2.170.0070.00722.96
8.2.160.0140.00020.34
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.90
8.2.110.0030.00620.89
8.2.100.0040.00717.78
8.2.90.0030.00519.22
8.2.80.0060.00317.97
8.2.70.0000.00817.75
8.2.60.0060.00318.04
8.2.50.0050.00318.10
8.2.40.0070.00320.07
8.2.30.0050.00218.22
8.2.20.0000.00717.72
8.2.10.0000.00717.93
8.2.00.0030.00517.68
8.1.280.0100.01025.92
8.1.270.0000.00923.84
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0050.00523.63
8.1.230.0040.00717.64
8.1.220.0030.00517.78
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0030.00617.35
8.1.180.0030.00518.10
8.1.170.0040.00418.50
8.1.160.0070.00021.86
8.1.150.0000.00718.53
8.1.140.0050.00217.36
8.1.130.0000.00817.78
8.1.120.0040.00417.52
8.1.110.0000.00717.43
8.1.100.0000.00717.38
8.1.90.0000.00717.43
8.1.80.0000.00717.50
8.1.70.0000.00717.46
8.1.60.0000.00817.54
8.1.50.0040.00417.57
8.1.40.0060.00317.51
8.1.30.0080.00017.62
8.1.20.0040.00417.67
8.1.10.0070.00017.59
8.1.00.0060.00317.45
8.0.300.0030.00618.77
8.0.290.0030.00616.75
8.0.280.0030.00318.43
8.0.270.0000.00717.29
8.0.260.0000.00717.16
8.0.250.0030.00316.90
8.0.240.0060.00016.88
8.0.230.0070.00016.81
8.0.220.0020.00516.85
8.0.210.0040.00416.93
8.0.200.0030.00617.00
8.0.190.0000.00716.99
8.0.180.0040.00416.82
8.0.170.0070.00016.97
8.0.160.0070.00016.94
8.0.150.0050.00316.81
8.0.140.0040.00416.72
8.0.130.0030.00313.35
8.0.120.0060.00316.68
8.0.110.0000.00816.86
8.0.100.0050.00216.92
8.0.90.0030.00316.86
8.0.80.0090.00616.86
8.0.70.0040.00416.83
8.0.60.0000.00716.89
8.0.50.0040.00416.80
8.0.30.0120.00717.07
8.0.20.0120.00917.40
8.0.10.0040.00416.96
8.0.00.0100.00816.76
7.4.330.0000.00515.00
7.4.320.0000.00716.49
7.4.300.0000.00716.48
7.4.290.0020.00516.54
7.4.280.0050.00216.57
7.4.270.0030.00316.61
7.4.260.0030.00316.49
7.4.250.0050.00316.36
7.4.240.0020.00516.55
7.4.230.0040.00416.63
7.4.220.0090.01316.44
7.4.210.0100.00716.67
7.4.200.0020.00516.52
7.4.190.0030.00316.48
7.4.160.0120.00416.58
7.4.150.0090.00917.40
7.4.140.0070.01117.86
7.4.130.0090.01116.44
7.4.120.0110.00616.48
7.4.110.0140.00316.55
7.4.100.0170.00016.55
7.4.90.0060.01016.58
7.4.80.0170.00619.39
7.4.70.0060.01016.61
7.4.60.0060.01216.42
7.4.50.0060.00316.48
7.4.40.0060.01016.48
7.4.30.0120.00916.56
7.4.00.0070.01115.11
7.3.330.0030.00313.07
7.3.320.0060.00013.16
7.3.310.0030.00516.32
7.3.300.0030.00316.18
7.3.290.0100.00316.27
7.3.280.0090.00816.30
7.3.270.0100.00717.40
7.3.260.0060.01216.45
7.3.250.0130.00416.45
7.3.240.0100.01416.64
7.3.230.0140.00416.42
7.3.210.0100.00716.54
7.3.200.0000.01619.39
7.3.190.0090.01216.36
7.3.180.0060.00916.46
7.3.170.0070.01016.44
7.3.160.0100.00716.21
7.3.120.0070.01014.50
7.2.330.0130.01016.63
7.2.320.0080.01516.74
7.2.310.0090.00916.73
7.2.300.0100.01016.57
7.2.290.0100.01016.43
7.2.00.0000.01119.54
7.1.100.0000.00917.58
7.1.70.0100.00317.04
7.1.60.0000.01117.19
7.1.50.0070.01716.72
7.1.00.0070.06722.48
7.0.200.0030.01316.72
7.0.140.0030.06721.99
7.0.60.0100.03320.00
7.0.50.0070.03717.87
7.0.40.0070.08320.05
7.0.30.0370.07320.26
7.0.20.0270.08020.33
7.0.10.0030.04320.05
7.0.00.0070.06320.24
5.6.280.0070.07021.16
5.6.210.0100.06020.63
5.6.200.0030.07718.27
5.6.190.0130.06720.52
5.6.180.0330.05720.61
5.6.170.0270.07720.40
5.6.160.0070.07020.70
5.6.150.0130.07318.21
5.6.140.0030.05718.18
5.6.130.0030.05018.21
5.6.120.0070.05021.09
5.6.110.0170.07321.00
5.6.100.0070.04021.11
5.6.90.0100.08321.13
5.6.80.0030.06020.38
5.5.350.0270.07320.47
5.5.340.0070.08018.05
5.5.330.0070.06720.45
5.5.320.0230.04320.30
5.5.310.0330.06720.29
5.5.300.0030.08018.04
5.5.290.0030.05017.98
5.5.280.0000.04720.89
5.5.270.0100.03320.87
5.5.260.0070.04320.77
5.5.250.0070.08020.47
5.5.240.0000.03320.26
5.4.450.0130.04019.28
5.4.440.0170.05019.41
5.4.430.0270.04319.32
5.4.420.0330.05019.48
5.4.410.0300.04019.07
5.4.400.1070.03719.20
5.4.390.0530.04018.88
5.4.380.0470.05018.46
5.4.370.0130.07018.70
5.4.360.0270.05718.50
5.4.350.0330.05318.72
5.4.340.0300.05018.49
5.4.320.0090.03812.50
5.4.310.0060.03712.50
5.4.300.0140.05012.50
5.4.290.0050.04512.50
5.4.280.0070.04412.40
5.4.270.0050.04112.40
5.4.260.0120.04212.40
5.4.250.0100.04412.40
5.4.240.0080.04012.40
5.4.230.0060.04112.39
5.4.220.0060.04112.39
5.4.210.0070.04112.39
5.4.200.0160.07612.39
5.4.190.0080.04412.39
5.4.180.0100.05512.39
5.4.170.0150.07912.40
5.4.160.0100.05912.39
5.4.150.0040.04212.39
5.4.140.0110.05112.07
5.4.130.0110.03712.07
5.4.120.0080.04112.02
5.4.110.0090.05212.02
5.4.100.0070.04912.01
5.4.90.0150.08712.02
5.4.80.0130.06912.02
5.4.70.0100.04712.02
5.4.60.0100.06012.02
5.4.50.0100.06112.01
5.4.40.0080.05012.00
5.4.30.0060.04112.00
5.4.20.0050.04012.00
5.4.10.0060.03912.00
5.4.00.0070.06611.49
5.3.290.0080.03912.80
5.3.280.0060.04212.71
5.3.270.0100.04512.73
5.3.260.0100.05812.72
5.3.250.0100.03612.72
5.3.240.0100.03512.72
5.3.230.0100.03612.70
5.3.220.0080.04112.68
5.3.210.0140.05512.68
5.3.200.0120.04612.68
5.3.190.0080.05612.67
5.3.180.0130.06712.68
5.3.170.0100.05512.66
5.3.160.0150.05612.68
5.3.150.0090.05312.67
5.3.140.0080.04912.66
5.3.130.0080.05612.66
5.3.120.0050.04912.66
5.3.110.0100.03912.66
5.3.100.0070.03712.12
5.3.90.0080.03612.11
5.3.80.0100.03412.10
5.3.70.0090.04212.10
5.3.60.0100.04612.07
5.3.50.0080.04112.03
5.3.40.0060.04312.03
5.3.30.0040.04011.98
5.3.20.0080.04511.76
5.3.10.0080.04811.73
5.3.00.0100.06211.72
5.2.170.0050.0479.22
5.2.160.0060.0569.22
5.2.150.0060.0569.21
5.2.140.0090.0449.22
5.2.130.0100.0429.18
5.2.120.0160.0719.18
5.2.110.0180.0709.18
5.2.100.0090.0489.18
5.2.90.0060.0579.18
5.2.80.0210.0869.18
5.2.70.0100.0479.18
5.2.60.0100.0599.13
5.2.50.0090.0429.10
5.2.40.0060.0469.07
5.2.30.0060.0449.05
5.2.20.0020.0339.04
5.2.10.0060.0398.95
5.2.00.0120.0478.80
5.1.60.0080.0438.09
5.1.50.0110.0588.09
5.1.40.0100.0498.07
5.1.30.0110.0638.41
5.1.20.0090.0528.43
5.1.10.0070.0368.17
5.1.00.0060.0778.17
5.0.50.0080.0276.64
5.0.40.0070.0446.50
5.0.30.0050.0466.32
5.0.20.0140.0366.28
5.0.10.0050.0246.26
5.0.00.0060.0356.25
4.4.90.0020.0184.78
4.4.80.0060.0164.76
4.4.70.0040.0174.76
4.4.60.0040.0224.75
4.4.50.0180.0444.77
4.4.40.0060.0494.71
4.4.30.0030.0214.76
4.4.20.0100.0284.85
4.4.10.0090.0224.85
4.4.00.0070.0364.76
4.3.110.0060.0444.67
4.3.100.0070.0274.66
4.3.90.0050.0254.63
4.3.80.0050.0384.59
4.3.70.0040.0244.63
4.3.60.0040.0354.63
4.3.50.0070.0324.63
4.3.40.0060.0344.53
4.3.30.0050.0233.30
4.3.20.0000.0273.28
4.3.10.0020.0243.24
4.3.00.0030.01716.93

preferences:
42.96 ms | 401 KiB | 5 Q