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::test(); static::test(); (new Example)->test(); $this->test(); } } $u = new Example();

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.01016.75
8.3.50.0070.01522.10
8.3.40.0080.00818.71
8.3.30.0070.00719.04
8.3.20.0040.00420.16
8.3.10.0080.00023.65
8.3.00.0060.00319.08
8.2.180.0040.01216.63
8.2.170.0140.00722.96
8.2.160.0080.00820.47
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00319.64
8.2.110.0060.00322.16
8.2.100.0000.01219.51
8.2.90.0080.00018.93
8.2.80.0030.00617.97
8.2.70.0040.00417.38
8.2.60.0100.00018.05
8.2.50.0110.00018.07
8.2.40.0000.01118.28
8.2.30.0080.00018.28
8.2.20.0000.00817.86
8.2.10.0080.00018.05
8.2.00.0060.00317.67
8.1.280.0130.00725.92
8.1.270.0090.00023.91
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0040.00423.96
8.1.230.0040.00819.22
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0050.00318.49
8.1.160.0000.00722.21
8.1.150.0040.00418.60
8.1.140.0030.00617.41
8.1.130.0030.00317.92
8.1.120.0000.00717.54
8.1.110.0060.00317.50
8.1.100.0040.00417.39
8.1.90.0040.00417.55
8.1.80.0040.00417.56
8.1.70.0000.00817.36
8.1.60.0000.00917.65
8.1.50.0050.00217.49
8.1.40.0060.00317.70
8.1.30.0030.00517.77
8.1.20.0050.00317.71
8.1.10.0000.00817.70
8.1.00.0000.00817.64
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0070.00018.48
8.0.270.0030.00317.29
8.0.260.0030.00317.29
8.0.250.0030.00316.89
8.0.240.0050.00217.02
8.0.230.0070.00016.95
8.0.220.0030.00316.93
8.0.210.0050.00216.89
8.0.200.0030.00716.89
8.0.190.0080.00016.99
8.0.180.0080.00016.85
8.0.170.0060.00316.89
8.0.160.0070.00016.95
8.0.150.0040.00416.90
8.0.140.0000.00716.91
8.0.130.0040.00413.39
8.0.120.0040.00416.79
8.0.110.0000.00716.91
8.0.100.0040.00416.87
8.0.90.0040.00416.70
8.0.80.0100.00716.75
8.0.70.0080.00016.88
8.0.60.0040.00416.86
8.0.50.0050.00216.92
8.0.30.0220.00917.28
8.0.20.0120.01317.40
8.0.10.0050.00316.84
8.0.00.0200.01016.77
7.4.330.0000.00515.00
7.4.320.0000.00716.50
7.4.300.0000.00616.59
7.4.290.0040.00416.56
7.4.280.0060.00316.48
7.4.270.0000.00816.48
7.4.260.0060.00316.54
7.4.250.0080.00016.54
7.4.240.0030.00416.53
7.4.230.0000.00816.39
7.4.220.0170.00416.52
7.4.210.0080.00716.63
7.4.200.0030.00316.29
7.4.190.0040.00416.67
7.4.160.0190.00516.59
7.4.150.0200.00617.40
7.4.140.0140.01217.86
7.4.130.0190.00916.48
7.4.120.0200.00616.45
7.4.110.0130.01316.72
7.4.100.0200.01016.63
7.4.90.0100.01416.52
7.4.80.0120.00919.39
7.4.70.0060.01316.47
7.4.60.0130.00816.38
7.4.50.0040.00416.33
7.4.40.0230.00316.43
7.4.30.0120.01616.43
7.3.330.0030.00413.22
7.3.320.0000.00613.27
7.3.310.0000.00816.40
7.3.300.0070.00016.31
7.3.290.0080.01416.30
7.3.280.0120.00716.31
7.3.270.0170.00917.40
7.3.260.0110.01116.31
7.3.250.0170.01016.44
7.3.240.0240.01316.61
7.3.230.0100.02116.39
7.3.210.0110.01116.37
7.3.200.0140.00719.39
7.3.190.0060.01616.55
7.3.180.0070.01116.33
7.3.170.0110.00916.42
7.3.160.0160.00816.51
7.2.330.0150.00916.84
7.2.320.0210.00716.41
7.2.310.0060.01416.79
7.2.300.0100.01016.41
7.2.290.0180.00516.42
7.2.100.1790.01414.70
7.2.90.0800.00314.38
7.2.80.0600.01714.51
7.2.70.0790.00914.66
7.2.60.0750.00314.86
7.2.50.0800.00914.91
7.2.40.0850.01215.21
7.2.30.0690.00614.77
7.2.20.0700.00914.65
7.2.10.0630.01014.98
7.2.00.0840.00914.89
7.1.220.0740.00713.98
7.1.210.0390.00613.66
7.1.200.0790.00313.88
7.1.190.0400.00413.82
7.1.180.1290.00713.68
7.1.170.0680.00614.16
7.1.160.0920.00713.91
7.1.150.0700.01013.69
7.1.140.0810.00313.74
7.1.130.0670.00613.77
7.1.120.0670.00313.77
7.1.110.0750.00813.65
7.1.100.0780.00713.93
7.1.90.1620.01013.86
7.1.80.0690.00313.87
7.1.70.0900.01313.88
7.1.60.0430.00332.23
7.1.50.0420.00732.07
7.1.40.0370.00332.13
7.1.30.0920.00932.25
7.1.20.1080.01332.13
7.1.10.0340.00713.64
7.1.00.0840.00313.61
7.0.310.0150.01113.43
7.0.300.0850.00613.45
7.0.290.0790.01513.56
7.0.280.0880.00013.59
7.0.270.0720.00313.67
7.0.260.0990.00413.84
7.0.250.0740.00613.58
7.0.240.0780.00313.70
7.0.230.0560.02014.04
7.0.220.0550.00813.34
7.0.210.0900.00613.66
7.0.200.0220.00613.88
7.0.190.0870.00613.58
7.0.180.0120.01213.91
7.0.170.0920.00913.88
7.0.160.0380.00713.50
7.0.150.1860.00713.72
7.0.140.0810.00313.62
7.0.130.0710.01513.88
7.0.120.0140.01113.38
7.0.110.0180.01113.79
7.0.100.0730.00813.63
7.0.90.0170.00713.35
7.0.80.0900.00613.35
7.0.70.0790.00613.54
7.0.60.0780.00713.29
7.0.50.0140.00913.59
7.0.40.0440.00513.38
7.0.30.0830.00613.64
7.0.20.1000.00013.52
7.0.10.0650.00613.63
7.0.00.0170.00713.26
5.6.380.0100.01414.45
5.6.370.0130.00614.25
5.6.360.0000.02314.41
5.6.350.0180.00914.60
5.6.340.0070.01114.48
5.6.330.0120.01014.42
5.6.320.0190.01015.07
5.6.310.0170.00314.70
5.6.300.0100.01414.76
5.6.290.0040.01714.78
5.6.280.0190.00014.69
5.6.270.0150.01215.25
5.6.260.0150.01115.23
5.6.250.0070.01314.49
5.6.240.0090.01215.30
5.6.230.0030.01314.20
5.6.220.0070.01014.25
5.6.210.0160.01314.66
5.6.200.0060.01214.32
5.6.190.0160.00614.30
5.6.180.0210.01014.88
5.6.170.0110.01114.62
5.6.160.0050.01414.59
5.6.150.0130.00814.41
5.6.140.0150.01514.92
5.6.130.0040.01814.21
5.6.120.0070.01514.34
5.6.110.0090.01214.04
5.6.100.0080.01014.59
5.6.90.0100.01014.29
5.6.80.0270.00615.05
5.6.70.0100.01014.11
5.6.60.0090.00914.27
5.5.380.0070.00711.75
5.5.370.0130.00511.75
5.5.360.0000.01911.78
5.5.350.0110.00611.75
5.5.340.0050.01011.75
5.5.330.0070.00711.75
5.5.320.0120.01211.85
5.5.310.0120.00011.75
5.5.300.0160.00011.75
5.5.290.0070.00911.75
5.5.280.0070.01411.75
5.5.270.0070.00711.75
5.5.260.0090.00611.75
5.5.250.0100.00511.75
5.5.240.0070.00711.75
5.5.230.0120.00611.75
5.4.450.0080.01111.75
5.4.440.0040.01211.75
5.4.430.0140.00011.75
5.4.420.0080.00811.75
5.4.410.0090.01411.75
5.4.400.0180.00011.75
5.4.390.0130.00411.75

preferences:
34.09 ms | 401 KiB | 5 Q