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() { Example::test1(); static::test2(); self::test3(); $this->test4(); } } $u = new Example(); Example::test5(); $u->test6();

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.40.0110.00418.49
8.3.30.0140.00019.04
8.3.20.0050.00320.27
8.3.10.0040.00423.52
8.3.00.0000.00919.01
8.2.170.0110.00422.96
8.2.160.0040.01120.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00920.97
8.2.110.0000.01320.57
8.2.100.0080.00317.78
8.2.90.0040.00417.63
8.2.80.0030.00618.64
8.2.70.0040.00417.49
8.2.60.0040.00417.50
8.2.50.0000.00817.68
8.2.40.0060.00319.16
8.2.30.0050.00218.18
8.2.20.0040.00417.56
8.2.10.0000.00718.12
8.2.00.0070.00017.55
8.1.270.0040.00423.88
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0000.00823.80
8.1.230.0120.00023.95
8.1.220.0040.00418.56
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0040.00422.03
8.1.150.0000.00718.61
8.1.140.0000.00717.43
8.1.130.0030.00317.93
8.1.120.0050.00317.26
8.1.110.0000.00817.23
8.1.100.0000.00717.36
8.1.90.0000.00717.36
8.1.80.0050.00217.39
8.1.70.0030.00317.31
8.1.60.0060.00317.48
8.1.50.0080.00017.48
8.1.40.0110.00017.51
8.1.30.0040.00417.57
8.1.20.0040.00417.64
8.1.10.0000.00717.57
8.1.00.0000.00817.55
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.32
8.0.270.0000.00717.25
8.0.260.0060.00017.17
8.0.250.0000.00716.93
8.0.240.0030.00316.82
8.0.230.0030.00316.92
8.0.220.0000.00716.78
8.0.210.0030.00316.88
8.0.200.0030.00616.99
8.0.190.0030.00316.95
8.0.180.0000.00816.92
8.0.170.0040.00416.80
8.0.160.0040.00316.95
8.0.150.0000.00716.86
8.0.140.0000.00716.72
8.0.130.0050.00013.36
8.0.120.0080.00016.79
8.0.110.0070.00016.75
8.0.100.0080.00016.74
8.0.90.0000.00716.98
8.0.80.0030.01816.93
8.0.70.0030.00516.89
8.0.60.0000.00716.89
8.0.50.0070.00016.77
8.0.30.0130.00817.11
8.0.20.0110.00717.40
8.0.10.0040.00416.98
8.0.00.0170.00516.66
7.4.330.0030.00315.00
7.4.320.0000.00816.36
7.4.300.0000.00716.50
7.4.290.0000.00816.52
7.4.280.0050.00316.60
7.4.270.0070.00016.41
7.4.260.0030.00316.34
7.4.250.0080.00016.37
7.4.240.0000.00716.59
7.4.230.0030.00316.67
7.4.220.0120.00616.60
7.4.210.0080.00816.62
7.4.200.0000.00716.62
7.4.190.0040.00216.76
7.4.160.0120.00316.33
7.4.150.0170.00717.40
7.4.140.0090.01217.86
7.4.130.0090.00916.44
7.4.120.0110.00616.54
7.4.110.0030.01316.51
7.4.100.0090.00916.44
7.4.90.0070.01116.54
7.4.80.0090.00919.39
7.4.70.0090.00616.60
7.4.60.0030.01716.47
7.4.50.0030.00616.32
7.4.40.0100.00616.39
7.4.30.0140.00316.61
7.4.10.0130.00715.03
7.4.00.0070.00715.05
7.3.330.0050.00313.22
7.3.320.0050.00013.37
7.3.310.0000.00716.39
7.3.300.0060.00016.21
7.3.290.0060.00916.31
7.3.280.0080.00916.27
7.3.270.0070.01117.40
7.3.260.0100.01016.32
7.3.250.0120.00616.44
7.3.240.0040.01516.29
7.3.230.0130.01016.48
7.3.210.0110.00616.40
7.3.200.0110.00719.39
7.3.190.0090.01216.21
7.3.180.0080.00716.27
7.3.170.0160.00016.49
7.3.160.0120.00816.44
7.3.130.0090.00914.74
7.3.120.0090.00814.95
7.3.110.0110.00714.81
7.3.100.0100.00314.62
7.3.90.0040.00714.56
7.3.80.0030.01014.70
7.3.70.0070.00714.73
7.3.60.0100.00714.50
7.3.50.0040.01114.91
7.3.40.0030.00614.87
7.3.30.0060.00314.46
7.3.20.0060.00916.66
7.3.10.0070.00816.41
7.3.00.0040.00916.45
7.2.330.0130.01016.63
7.2.320.0060.01216.40
7.2.310.0070.01016.36
7.2.300.0070.01016.68
7.2.290.0100.01316.56
7.2.260.0040.01514.86
7.2.250.0030.01714.87
7.2.240.0030.00915.17
7.2.230.0030.01415.19
7.2.220.0090.00915.18
7.2.210.0080.00314.84
7.2.200.0030.01115.13
7.2.190.0030.01214.76
7.2.180.0080.00814.97
7.2.170.0030.01015.11
7.2.160.0000.00915.11
7.2.150.0070.00716.93
7.2.140.0030.00716.95
7.2.130.0030.01016.60
7.2.120.0090.00816.71
7.2.110.0100.00616.79
7.2.100.0100.00716.76
7.2.90.0120.00516.75
7.2.80.0050.01016.53
7.2.70.0060.00716.64
7.2.60.0070.00516.62
7.2.50.0090.00516.69
7.2.40.0020.01216.61
7.2.30.0060.00716.73
7.2.20.0090.00716.70
7.2.10.0080.00416.53
7.2.00.0050.00817.58
7.1.330.0070.00715.54
7.1.320.0040.01115.64
7.1.310.0030.01115.50
7.1.300.0140.00015.72
7.1.290.0040.00815.61
7.1.280.0030.01015.83
7.1.270.0030.00915.52
7.1.260.0080.00615.71
7.1.250.0130.00715.63
7.1.240.0040.00415.78
7.1.230.0070.00715.75
7.1.220.0100.00315.61
7.1.210.0100.00315.74
7.1.200.0090.00515.65
7.1.190.0000.01115.71
7.1.180.0030.01215.89
7.1.170.0030.01015.68
7.1.160.0080.00315.59
7.1.150.0110.00015.67
7.1.140.0060.00615.64
7.1.130.0030.01015.83
7.1.120.0110.00415.46
7.1.110.0070.00315.68
7.1.100.0070.00616.71
7.1.90.0040.01515.73
7.1.80.0040.01115.75
7.1.70.0050.00316.34
7.1.60.0060.01317.73
7.1.50.0080.00816.25
7.1.40.0060.00615.77
7.1.30.0040.00415.70
7.1.20.0040.01215.61
7.1.10.0030.00915.72
7.1.00.0030.04419.06
7.0.330.0040.00415.24
7.0.320.0000.00815.39
7.0.310.0070.00715.45
7.0.300.0070.00715.48
7.0.290.0000.01215.46
7.0.280.0030.00515.09
7.0.270.0070.00715.26
7.0.260.0070.00715.50
7.0.250.0070.00015.38
7.0.240.0100.00715.39
7.0.230.0070.01115.21
7.0.220.0060.00915.40
7.0.210.0030.00815.49
7.0.200.0050.00716.10
7.0.190.0060.00315.38
7.0.180.0090.00615.50
7.0.170.0090.00315.45
7.0.160.0040.00815.21
7.0.150.0040.00815.34
7.0.140.0080.03818.71
7.0.130.0030.01015.31
7.0.120.0040.00815.50
7.0.110.0060.00615.01
7.0.100.0110.00315.33
7.0.90.0100.00315.49
7.0.80.0060.00715.55
7.0.70.0150.00015.35
7.0.60.0050.02517.54
7.0.50.0040.02416.65
7.0.40.0030.03716.87
7.0.30.0130.02816.95
7.0.20.0190.04016.80
7.0.10.0030.02616.92
7.0.00.0070.04516.77
5.6.400.0000.00814.16
5.6.390.0040.01114.43
5.6.380.0000.01014.33
5.6.370.0070.00714.53
5.6.360.0070.01014.74
5.6.350.0070.00713.86
5.6.340.0080.00314.25
5.6.330.0070.01014.55
5.6.320.0070.00314.29
5.6.310.0050.00314.34
5.6.300.0070.00414.57
5.6.290.0060.00914.57
5.6.280.0080.03717.56
5.6.270.0000.01114.32
5.6.260.0070.00714.11
5.6.250.0060.00614.44
5.6.240.0080.00414.45
5.6.230.0100.00714.28
5.6.220.0000.01314.46
5.6.210.0030.04617.42
5.6.200.0060.03016.23
5.6.190.0050.05317.49
5.6.180.0260.03617.41
5.6.170.0160.04317.43
5.6.160.0050.04617.38
5.6.150.0090.02816.35
5.6.140.0030.04416.21
5.6.130.0080.04216.33
5.6.120.0060.02317.65
5.6.110.0070.04417.57
5.6.100.0030.02317.77
5.6.90.0100.04717.57
5.6.80.0060.03517.35
5.6.70.0060.00614.12
5.6.60.0070.00714.27
5.6.50.0030.01014.44
5.6.40.0070.01014.13
5.6.30.0060.00314.20
5.6.20.0030.00914.53
5.6.10.0030.01014.16
5.6.00.0000.01114.04
5.5.380.0070.00714.39
5.5.370.0100.00314.20
5.5.360.0040.00414.14
5.5.350.0180.04017.40
5.5.340.0130.04016.10
5.5.330.0120.02517.24
5.5.320.0200.02017.29
5.5.310.0160.04617.32
5.5.300.0080.02516.11
5.5.290.0020.05016.16
5.5.280.0080.03117.65
5.5.270.0080.02117.48
5.5.260.0080.02617.57
5.5.250.0080.04217.39
5.5.240.0080.01617.10
5.5.230.0060.00614.33
5.5.220.0000.01014.00
5.5.210.0030.01214.06
5.5.200.0030.01014.07
5.5.190.0040.00914.41
5.5.180.0110.00414.27
5.5.170.0060.00614.27
5.5.160.0060.00914.22
5.5.150.0000.01314.04
5.5.140.0000.00914.10
5.5.130.0040.01114.09
5.5.120.0030.00914.24
5.5.110.0080.00814.45
5.5.100.0000.01114.06
5.5.90.0090.00314.30
5.5.80.0100.00314.27
5.5.70.0070.00714.17
5.5.60.0070.00314.34
5.5.50.0030.01013.98
5.5.40.0070.00714.07
5.5.30.0030.01014.10
5.5.20.0070.00714.28
5.5.10.0030.00514.20
5.5.00.0040.00414.27
5.4.450.0110.02815.31
5.4.440.0410.02115.33
5.4.430.0180.02214.97
5.4.420.0200.01915.28
5.4.410.0100.02215.31
5.4.400.0070.02715.05
5.4.390.0150.02514.94
5.4.380.0100.04014.56
5.4.370.0230.03714.85
5.4.360.0220.04314.81
5.4.350.0260.03014.68
5.4.340.0290.03114.88
5.4.330.0060.00610.95
5.4.320.0040.02411.76
5.4.310.0040.02711.64
5.4.300.0080.02111.76
5.4.290.0070.02211.70
5.4.280.0090.01911.65
5.4.270.0070.02411.65
5.4.260.0070.02611.71
5.4.250.0060.03011.71
5.4.240.0080.02611.63
5.4.230.0080.03011.72
5.4.220.0110.02211.63
5.4.210.0070.02411.63
5.4.200.0070.02311.71
5.4.190.0050.02911.48
5.4.180.0050.02811.59
5.4.170.0020.02711.63
5.4.160.0040.02111.50
5.4.150.0070.02911.61
5.4.140.0070.02911.53
5.4.130.0060.02811.63
5.4.120.0080.02411.51
5.4.110.0090.02111.50
5.4.100.0060.01911.53
5.4.90.0020.02511.46
5.4.80.0040.02211.44
5.4.70.0040.02411.53
5.4.60.0100.02111.47
5.4.50.0080.02411.55
5.4.40.0060.02311.54
5.4.30.0050.02311.39
5.4.20.0060.03011.47
5.4.10.0180.04411.41
5.4.00.0110.03111.14
5.3.290.0020.02411.74
5.3.280.0100.04211.63
5.3.270.0070.04111.55
5.3.260.0060.04711.69
5.3.250.0050.04111.65
5.3.240.0080.02911.63
5.3.230.0090.03311.60
5.3.220.0050.04311.55
5.3.210.0040.02811.57
5.3.200.0050.03611.53
5.3.190.0060.02211.47
5.3.180.0040.02711.68
5.3.170.0080.02311.56
5.3.160.0070.05111.54
5.3.150.0090.05411.63
5.3.140.0030.03311.61
5.3.130.0110.02711.62
5.3.120.0130.04811.60
5.3.110.0140.05311.62
5.3.100.0050.03211.36
5.3.90.0090.04011.37
5.3.80.0090.03911.18
5.3.70.0100.04911.14
5.3.60.0040.03811.40
5.3.50.0100.02911.29
5.3.40.0050.02411.27
5.3.30.0050.02411.31
5.3.20.0050.03011.15
5.3.10.0080.02311.07
5.3.00.0070.04410.94
5.2.170.0070.0419.22
5.2.160.0070.0409.23
5.2.150.0050.0519.23
5.2.140.0070.0349.22
5.2.130.0100.0429.18
5.2.120.0320.1039.18
5.2.110.0050.0379.19
5.2.100.0280.0669.19
5.2.90.0090.0649.19
5.2.80.0110.0469.18
5.2.70.0060.0359.18
5.2.60.0110.0729.13
5.2.50.0080.0539.11
5.2.40.0170.0539.08
5.2.30.0090.0329.06
5.2.20.0200.1099.05
5.2.10.0060.0568.96
5.2.00.0090.0398.82
5.1.60.0110.0318.10
5.1.50.0050.0378.10
5.1.40.0060.0298.08
5.1.30.0050.0358.43
5.1.20.0070.0328.44
5.1.10.0020.0288.17
5.1.00.0060.0258.17
5.0.50.0020.0236.64
5.0.40.0040.0206.50
5.0.30.0030.0326.31
5.0.20.0020.0216.28
5.0.10.0030.0216.26
5.0.00.0050.0576.25
4.4.90.0050.0304.78
4.4.80.0100.0474.75
4.4.70.0020.0224.75
4.4.60.0040.0224.75
4.4.50.0020.0194.77
4.4.40.0020.0274.71
4.4.30.0040.0154.76
4.4.20.0050.0164.85
4.4.10.0040.0184.84
4.4.00.0070.0264.76
4.3.110.0030.0164.67
4.3.100.0020.0174.66
4.3.90.0050.0144.64
4.3.80.0030.0264.58
4.3.70.0020.0234.63
4.3.60.0030.0224.63
4.3.50.0020.0244.63
4.3.40.0020.0274.54
4.3.30.0010.0193.30
4.3.20.0030.0173.28
4.3.10.0020.0163.24
4.3.00.0070.01716.93

preferences:
53.22 ms | 400 KiB | 5 Q