3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseExample { public static function __callStatic($name, array $arguments) { echo "Calling static method '$name' \n"; } public function __call($name, array $arguments) { echo "Calling object method '$name' \n"; } } class Example extends BaseExample { public function __construct() { BaseExample::test1(); Example::test2(); static::test3(); self::test4(); $this->test5(); test(); } } $u = new Example(); Example::test8(); $u->test9(); function test() { Example::test6(); $this->test7(); }

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.0110.01116.58
8.3.60.0140.00616.63
8.3.50.0070.01321.92
8.3.40.0070.00718.82
8.3.30.0080.00618.92
8.3.20.0080.00020.19
8.3.10.0040.00423.65
8.3.00.0080.00019.14
8.2.180.0110.00416.50
8.2.170.0040.01122.96
8.2.160.0030.01020.38
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00820.84
8.2.110.0030.00620.90
8.2.100.0090.00317.97
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0060.00318.05
8.2.50.0000.00818.10
8.2.40.0030.01018.16
8.2.30.0000.00718.37
8.2.20.0080.00017.76
8.2.10.0000.00718.04
8.2.00.0000.00817.62
8.1.280.0110.01125.92
8.1.270.0000.01023.81
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00823.97
8.1.230.0080.00317.76
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.00
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.17
8.1.160.0000.00721.97
8.1.150.0040.00418.44
8.1.140.0000.00717.38
8.1.130.0030.00517.68
8.1.120.0030.00417.31
8.1.110.0040.00417.24
8.1.100.0050.00217.32
8.1.90.0000.00717.33
8.1.80.0040.00417.17
8.1.70.0000.00717.34
8.1.60.0030.00517.42
8.1.50.0030.00517.37
8.1.40.0000.00817.32
8.1.30.0040.00417.59
8.1.20.0000.00717.66
8.1.10.0040.00417.41
8.1.00.0050.00217.36
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0080.00018.41
8.0.270.0070.00017.26
8.0.260.0000.00717.26
8.0.250.0000.00717.07
8.0.240.0030.00317.00
8.0.230.0000.00717.08
8.0.220.0030.00316.87
8.0.210.0030.00316.93
8.0.200.0090.00016.91
8.0.190.0000.00716.98
8.0.180.0090.00016.92
8.0.170.0070.00017.00
8.0.160.0000.00916.99
8.0.150.0000.00716.98
8.0.140.0040.00416.86
8.0.130.0060.00013.45
8.0.120.0040.00416.92
8.0.110.0000.00716.96
8.0.100.0050.00316.82
8.0.90.0070.00016.91
8.0.80.0180.00316.89
8.0.70.0030.00616.83
8.0.60.0040.00416.91
8.0.50.0000.00816.76
8.0.30.0140.01016.95
8.0.20.0100.00917.40
8.0.10.0000.00716.90
8.0.00.0090.01116.79
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0000.00616.41
7.4.290.0000.00716.57
7.4.280.0030.00516.63
7.4.270.0030.00316.53
7.4.260.0000.00716.37
7.4.250.0040.00416.57
7.4.240.0030.00416.59
7.4.230.0050.00216.52
7.4.220.0090.00916.71
7.4.210.0070.00716.55
7.4.200.0000.00816.58
7.4.190.0000.00716.50
7.4.160.0100.00716.55
7.4.150.0140.00417.40
7.4.140.0140.00317.86
7.4.130.0110.00816.57
7.4.120.0110.00816.59
7.4.110.0090.00916.48
7.4.100.0070.01116.38
7.4.90.0100.01016.38
7.4.80.0060.01219.39
7.4.70.0070.01016.63
7.4.60.0040.01816.35
7.4.50.0050.00016.24
7.4.40.0100.00616.54
7.4.30.0100.00716.51
7.4.00.0100.00315.04
7.3.330.0000.00513.44
7.3.320.0000.00513.36
7.3.310.0000.00716.32
7.3.300.0040.00416.40
7.3.290.0030.01016.45
7.3.280.0070.01116.43
7.3.270.0030.01417.40
7.3.260.0170.00616.22
7.3.250.0050.01216.36
7.3.240.0160.01316.32
7.3.230.0120.01216.54
7.3.210.0100.00716.57
7.3.200.0140.00319.39
7.3.190.0080.01316.52
7.3.180.0100.00516.51
7.3.170.0140.00716.46
7.3.160.0060.01016.40
7.3.120.0080.00814.73
7.3.00.0070.00416.21
7.2.330.0050.01616.49
7.2.320.0040.01916.68
7.2.310.0060.01016.73
7.2.300.0150.00716.29
7.2.290.0150.00316.67
7.2.130.0000.01016.90
7.2.120.0030.01016.43
7.2.110.0080.00416.91
7.2.100.0000.01416.82
7.2.90.0000.01216.50
7.2.80.0120.00416.78
7.2.70.0100.00616.45
7.2.60.0000.01316.92
7.2.50.0030.00816.47
7.2.40.0070.00716.82
7.2.30.0100.00716.80
7.2.20.0120.00616.62
7.2.10.0060.01216.57
7.2.00.0030.00816.42
7.1.250.0040.01215.57
7.1.240.0030.00715.48
7.1.230.0040.00715.73
7.1.220.0040.00415.55
7.1.210.0120.00415.70
7.1.200.0070.00515.60
7.1.190.0040.00815.63
7.1.180.0000.01215.62
7.1.170.0030.00915.61
7.1.160.0030.01015.54
7.1.150.0000.00915.34
7.1.140.0090.00915.61
7.1.130.0100.00315.18
7.1.120.0090.00315.59
7.1.110.0030.00915.44
7.1.100.0030.00515.83
7.1.90.0030.01015.67
7.1.80.0070.01015.57
7.1.70.0030.00916.18
7.1.60.0120.00717.69
7.1.50.0060.01216.07
7.1.40.0070.00315.42
7.1.30.0040.00815.54
7.1.20.0030.01015.59
7.1.10.0040.00415.72
7.1.00.0080.04018.94
7.0.330.0060.00615.28
7.0.320.0030.00715.43
7.0.310.0030.00915.27
7.0.300.0080.00815.26
7.0.290.0070.00715.05
7.0.280.0000.01115.41
7.0.270.0030.01214.98
7.0.260.0110.00715.41
7.0.250.0070.00715.27
7.0.240.0070.00715.36
7.0.230.0100.00715.29
7.0.220.0090.00415.14
7.0.210.0060.00615.18
7.0.200.0000.00915.93
7.0.190.0030.00715.04
7.0.180.0030.00915.40
7.0.170.0090.00315.16
7.0.160.0150.00015.46
7.0.150.0100.00315.26
7.0.140.0070.03818.63
7.0.130.0090.00315.42
7.0.120.0000.01015.25
7.0.110.0120.00015.51
7.0.100.0130.00415.25
7.0.90.0000.01215.09
7.0.80.0000.01315.08
7.0.70.0030.01015.07
7.0.60.0070.04717.51
7.0.50.0100.03816.50
7.0.40.0050.03816.82
7.0.30.0110.03116.77
7.0.20.0130.03116.79
7.0.10.0030.03116.71
7.0.00.0060.04116.69
5.6.380.0070.00414.46
5.6.370.0100.00313.98
5.6.360.0040.00413.96
5.6.350.0030.01114.28
5.6.340.0040.00714.52
5.6.330.0000.00814.26
5.6.320.0090.00314.17
5.6.310.0070.00714.02
5.6.300.0080.00814.20
5.6.290.0000.00813.95
5.6.280.0070.03717.62
5.6.270.0040.00814.34
5.6.260.0040.00814.14
5.6.250.0110.00013.95
5.6.240.0100.00614.30
5.6.230.0040.00813.97
5.6.220.0070.00714.36
5.6.210.0030.04817.45
5.6.200.0050.02616.07
5.6.190.0100.02817.19
5.6.180.0140.04417.13
5.6.170.0300.02517.21
5.6.160.0050.03017.26
5.6.150.0050.02216.08
5.6.140.0080.04116.15
5.6.130.0050.02516.19
5.6.120.0070.04717.40
5.6.110.0060.04817.51
5.6.100.0050.04817.53
5.6.90.0100.04017.74
5.6.80.0020.03817.10
5.6.70.0030.00913.96
5.6.60.0070.00714.25
5.6.50.0060.00614.08
5.6.40.0080.00314.24
5.6.30.0030.00514.04
5.6.20.0050.00414.03
5.6.10.0000.01314.09
5.6.00.0120.00014.16
5.5.380.0000.01011.00
5.5.370.0080.00011.29
5.5.360.0000.00811.12
5.5.350.0050.02715.76
5.5.340.0070.03814.59
5.5.330.0100.02315.79
5.5.320.0250.03515.64
5.5.310.0100.02715.62
5.5.300.0080.02814.50
5.5.290.0030.04214.61
5.5.280.0060.04715.95
5.5.270.0060.03115.91
5.5.260.0030.02315.99
5.5.250.0100.04315.85
5.5.240.2060.02515.59
5.5.230.0140.00011.19
5.5.220.0030.00611.00
5.5.210.0060.00611.00
5.5.200.0030.01011.09
5.5.190.0080.00411.00
5.5.180.0040.00411.00
5.5.170.0040.00711.00
5.5.160.0100.00311.00
5.5.150.0050.00511.00
5.5.140.0000.00811.02
5.5.130.0060.00311.00
5.5.120.0040.00411.00
5.5.110.0050.00211.07
5.5.100.0060.00611.00
5.5.90.0000.00811.00
5.5.80.0050.00511.00
5.5.70.0060.00311.00
5.5.60.0060.00311.01
5.5.50.0050.00311.00
5.5.40.0030.00311.01
5.5.30.0030.00611.03
5.5.20.0000.00711.00
5.5.10.0060.00011.00
5.5.00.0000.01011.01
5.4.450.0110.02615.28
5.4.440.0100.02915.25
5.4.430.0120.01915.23
5.4.420.0130.02515.29
5.4.410.0170.02015.14
5.4.400.0170.02314.99
5.4.390.0230.02915.07
5.4.380.0250.03014.75
5.4.370.0190.02914.89
5.4.360.0180.02514.74
5.4.350.0220.02514.92
5.4.340.0170.03014.85
5.4.330.0060.00311.00
5.4.320.0040.02111.76
5.4.310.0040.02211.76
5.4.300.0100.04311.76
5.4.290.0040.04011.76
5.4.280.0070.02011.71
5.4.270.0050.02411.71
5.4.260.0060.02211.71
5.4.250.0050.02211.71
5.4.240.0040.02211.71
5.4.230.0060.02311.72
5.4.220.0050.03311.70
5.4.210.0080.02711.70
5.4.200.0070.02911.70
5.4.190.0060.02711.70
5.4.180.0040.03011.70
5.4.170.0050.04811.71
5.4.160.0070.03911.70
5.4.150.0080.03111.70
5.4.140.0020.02511.54
5.4.130.0090.02011.61
5.4.120.0040.02711.51
5.4.110.0080.02011.51
5.4.100.0040.02311.51
5.4.90.0040.02111.51
5.4.80.0050.02111.52
5.4.70.0040.02211.54
5.4.60.0040.02911.51
5.4.50.0020.03311.51
5.4.40.0070.02511.51
5.4.30.0080.02411.50
5.4.20.0070.02511.50
5.4.10.0020.02111.50
5.4.00.0050.02811.25
5.3.290.0040.02311.90
5.3.280.0070.02811.86
5.3.270.0050.03911.86
5.3.260.0060.03311.86
5.3.250.0040.02511.86
5.3.240.0040.02511.86
5.3.230.0050.02511.86
5.3.220.0050.02311.84
5.3.210.0070.02211.84
5.3.200.0080.03211.84
5.3.190.0090.03711.84
5.3.180.0070.02911.84
5.3.170.0060.02111.84
5.3.160.0090.01811.84
5.3.150.0090.02211.84
5.3.140.0050.02611.83
5.3.130.0020.02711.83
5.3.120.0070.02511.83
5.3.110.0070.03211.83
5.3.100.0060.03711.57
5.3.90.0060.03411.56
5.3.80.0060.03211.55
5.3.70.0040.03011.55
5.3.60.0070.02811.55
5.3.50.0090.03211.52
5.3.40.0080.04011.52
5.3.30.0100.05411.50
5.3.20.0070.04711.39
5.3.10.0130.03811.37
5.3.00.0070.03411.37
5.2.170.0090.03010.11
5.2.160.0110.03110.11
5.2.150.0100.02310.12
5.2.140.0100.05810.11
5.2.130.0060.03210.09
5.2.120.0110.03010.09
5.2.110.0090.04610.10
5.2.100.0110.03210.10
5.2.90.0060.03310.09
5.2.80.0050.02310.09
5.2.70.0040.02910.10
5.2.60.0090.03810.07
5.2.50.0030.02110.05
5.2.40.0040.02410.04
5.2.30.0080.02210.03
5.2.20.0040.02410.03
5.2.10.0050.0239.98
5.2.00.0070.0279.91
5.1.60.0060.0219.55
5.1.50.0060.0219.55
5.1.40.0040.0249.54
5.1.30.0070.0289.72
5.1.20.0030.0199.72
5.1.10.0020.0189.59
5.1.00.0070.0199.59
5.0.50.0060.0138.82
5.0.40.0050.0118.75
5.0.30.0060.0188.66
5.0.20.0060.0138.64
5.0.10.0040.0138.63
5.0.00.0030.0228.63
4.4.90.0040.0117.89
4.4.80.0050.0147.88
4.4.70.0010.0167.88
4.4.60.0020.0147.88
4.4.50.0070.0157.89
4.4.40.0020.0307.86
4.4.30.0020.0147.88
4.4.20.0040.0177.93
4.4.10.0020.0167.93
4.4.00.0010.0277.88
4.3.110.0020.0157.84
4.3.100.0070.0237.84
4.3.90.0090.0187.82
4.3.80.0020.0157.79
4.3.70.0020.0107.81
4.3.60.0020.0157.82
4.3.50.0070.0227.81
4.3.40.0060.0227.77
4.3.30.0040.0367.15
4.3.20.0040.0207.14
4.3.10.0030.0107.12
4.3.00.0020.01113.97

preferences:
56.57 ms | 401 KiB | 5 Q