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(); $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.0060.01316.34
8.3.50.0120.00921.85
8.3.40.0120.00318.67
8.3.30.0130.00019.11
8.3.20.0060.00320.20
8.3.10.0040.00423.62
8.3.00.0000.00719.01
8.2.180.0100.01016.75
8.2.170.0140.00022.96
8.2.160.0070.00720.29
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.80
8.2.110.0030.00622.24
8.2.100.0080.00319.40
8.2.90.0080.00019.28
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.01117.68
8.2.50.0090.00018.07
8.2.40.0050.00519.85
8.2.30.0000.00718.14
8.2.20.0000.00917.69
8.2.10.0040.00417.93
8.2.00.0000.00817.60
8.1.280.0040.01125.92
8.1.270.0000.00823.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00023.92
8.1.230.0040.00719.16
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00717.10
8.1.190.0080.00016.88
8.1.180.0000.00818.10
8.1.170.0030.00518.45
8.1.160.0040.00421.96
8.1.150.0030.00618.57
8.1.140.0000.00717.33
8.1.130.0030.00317.75
8.1.120.0000.00717.42
8.1.110.0080.00017.31
8.1.100.0000.00717.42
8.1.90.0080.00017.42
8.1.80.0000.00817.31
8.1.70.0000.00717.31
8.1.60.0060.00317.57
8.1.50.0060.00317.49
8.1.40.0030.00617.42
8.1.30.0030.00617.59
8.1.20.0070.00017.60
8.1.10.0050.00217.60
8.1.00.0060.00317.56
8.0.300.0000.00918.77
8.0.290.0040.00417.05
8.0.280.0070.00018.32
8.0.270.0070.00017.32
8.0.260.0030.00317.13
8.0.250.0000.00716.97
8.0.240.0000.00716.82
8.0.230.0080.00016.91
8.0.220.0030.00316.82
8.0.210.0000.00716.88
8.0.200.0060.00316.93
8.0.190.0030.00516.93
8.0.180.0050.00316.94
8.0.170.0050.00316.74
8.0.160.0030.00416.88
8.0.150.0000.00716.86
8.0.140.0040.00416.88
8.0.130.0060.00013.32
8.0.120.0050.00316.85
8.0.110.0070.00016.79
8.0.100.0000.00716.85
8.0.90.0070.00016.75
8.0.80.0150.00316.82
8.0.70.0000.00816.68
8.0.60.0000.00816.93
8.0.50.0000.00716.95
8.0.30.0090.01017.14
8.0.20.0090.01017.40
8.0.10.0050.00216.97
8.0.00.0070.01216.88
7.4.330.0000.00615.00
7.4.320.0030.00516.40
7.4.300.0000.00616.54
7.4.290.0030.00316.52
7.4.280.0060.00316.50
7.4.270.0040.00416.50
7.4.260.0070.00016.61
7.4.250.0040.00416.54
7.4.240.0040.00316.60
7.4.230.0040.00416.36
7.4.220.0090.00916.63
7.4.210.0000.01416.54
7.4.200.0000.00716.70
7.4.190.0030.00316.57
7.4.160.0090.01316.53
7.4.150.0090.00817.40
7.4.140.0070.00917.86
7.4.130.0070.01016.47
7.4.120.0080.00816.44
7.4.110.0030.01516.49
7.4.100.0050.01416.46
7.4.90.0170.00016.42
7.4.80.0070.01119.39
7.4.70.0040.01216.43
7.4.60.0120.00316.49
7.4.50.0040.00516.24
7.4.40.0060.01316.52
7.4.30.0060.02016.61
7.4.00.0090.00614.67
7.3.330.0040.00413.14
7.3.320.0000.00613.39
7.3.310.0050.00216.29
7.3.300.0040.00416.34
7.3.290.0100.01016.27
7.3.280.0080.01116.30
7.3.270.0000.01717.40
7.3.260.0040.01216.39
7.3.250.0080.00916.32
7.3.240.0060.01316.58
7.3.230.0030.01416.55
7.3.210.0040.01216.18
7.3.200.0090.00919.39
7.3.190.0070.01016.55
7.3.180.0040.01216.44
7.3.170.0060.01116.57
7.3.160.0030.02016.43
7.3.120.0090.00614.72
7.3.10.0040.00716.61
7.3.00.0070.00416.38
7.2.330.0070.01016.69
7.2.320.0120.00616.73
7.2.310.0060.01016.40
7.2.300.0060.01116.72
7.2.290.0110.00716.77
7.2.130.0060.00916.66
7.2.120.0050.01016.66
7.2.110.0200.00316.76
7.2.100.0170.00616.71
7.2.90.0160.00016.73
7.2.80.0070.01116.68
7.2.70.0160.01016.63
7.2.60.0080.01016.52
7.2.50.0040.00816.70
7.2.40.0220.00616.91
7.2.30.0110.00316.57
7.2.20.0180.00316.71
7.2.10.0130.00716.32
7.2.00.0080.00717.98
7.1.250.0080.00815.32
7.1.200.0030.00615.56
7.1.100.0070.00717.68
7.1.70.0050.00316.97
7.1.60.0030.02019.70
7.1.50.0190.01116.83
7.1.00.0130.06722.45
7.0.200.0040.00416.50
7.0.140.0100.06722.06
7.0.60.0100.08019.78
7.0.50.0130.06017.85
7.0.40.0130.05020.04
7.0.30.0130.06020.12
7.0.20.0170.05020.19
7.0.10.0000.05720.23
7.0.00.0130.08320.22
5.6.210.0100.07720.48
5.6.200.0000.04318.21
5.6.190.0030.04320.61
5.6.180.0500.06720.41
5.6.170.0300.05720.54
5.6.160.0100.04320.54
5.6.150.0030.05018.15
5.6.140.0030.05318.29
5.6.130.0300.06018.18
5.6.120.0030.08721.03
5.6.110.0070.08721.02
5.6.100.0130.08020.98
5.6.90.0030.04021.11
5.6.80.0030.08320.49
5.5.350.3670.03720.42
5.5.340.0130.05317.95
5.5.330.0030.06720.40
5.5.320.0270.07320.35
5.5.310.0230.03720.41
5.5.300.0030.04318.08
5.5.290.0030.04017.91
5.5.280.0100.08720.98
5.5.270.0030.08720.77
5.5.260.0070.03720.80
5.5.250.0070.06720.69
5.5.240.0030.08320.20
5.4.450.0470.04019.16
5.4.440.0300.04019.46
5.4.430.0400.05019.63
5.4.420.0700.04019.54
5.4.410.0130.04719.29
5.4.400.0270.05018.87
5.4.390.0400.04019.22
5.4.380.0370.06718.49
5.4.370.0270.06018.48
5.4.360.0230.05718.73
5.4.350.0270.05318.73
5.4.340.0700.05318.66
5.4.320.0080.03812.50
5.4.310.0040.03912.50
5.4.300.0100.04912.51
5.4.290.0100.05212.50
5.4.280.0060.05212.40
5.4.270.0080.05412.40
5.4.260.0080.05512.40
5.4.250.0120.05512.40
5.4.240.0060.06312.39
5.4.230.0100.05212.39
5.4.220.0040.05612.39
5.4.210.0060.05512.39
5.4.200.0120.05012.39
5.4.190.0100.05012.39
5.4.180.0120.04812.39
5.4.170.0070.05312.40
5.4.160.0070.05012.39
5.4.150.0070.05012.39
5.4.140.0060.05412.07
5.4.130.0090.05212.06
5.4.120.0170.08412.02
5.4.110.0080.06712.02
5.4.100.0070.05112.02
5.4.90.0050.06212.02
5.4.80.0070.06012.02
5.4.70.0060.06012.01
5.4.60.0100.05812.02
5.4.50.0140.08312.01
5.4.40.0120.09112.00
5.4.30.0110.07212.00
5.4.20.0090.05212.00
5.4.10.0090.05212.00
5.4.00.0060.05611.48
5.3.290.0090.04512.80
5.3.280.0070.05712.71
5.3.270.0100.09912.72
5.3.260.0140.06712.72
5.3.250.0100.05812.72
5.3.240.0060.06312.72
5.3.230.0150.06712.71
5.3.220.0120.07312.68
5.3.210.0120.06012.68
5.3.200.0080.05512.68
5.3.190.0070.05512.68
5.3.180.0080.05512.67
5.3.170.0090.05512.67
5.3.160.0120.05112.68
5.3.150.0120.05112.67
5.3.140.0080.05512.66
5.3.130.0080.05612.65
5.3.120.0070.05912.66
5.3.110.0090.05812.66
5.3.100.0110.05012.13
5.3.90.0100.05312.11
5.3.80.0100.05012.09
5.3.70.0070.05312.10
5.3.60.0080.05112.08
5.3.50.0090.04912.02
5.3.40.0070.06012.04
5.3.30.0120.05011.99
5.3.20.0080.05311.77
5.3.10.0080.05311.73
5.3.00.0070.05811.72
5.2.170.0080.0559.23
5.2.160.0060.0469.22
5.2.150.0050.0509.22
5.2.140.0130.0769.22
5.2.130.0100.0559.18
5.2.120.0060.0459.18
5.2.110.0160.0539.19
5.2.100.0070.0439.19
5.2.90.0040.0469.18
5.2.80.0160.0669.18
5.2.70.0040.0459.18
5.2.60.0050.0459.13
5.2.50.0100.0419.11
5.2.40.0050.0429.08
5.2.30.0070.0459.06
5.2.20.0090.0399.05
5.2.10.0070.0418.96
5.2.00.0090.0408.82
5.1.60.0060.0368.10
5.1.50.0050.0378.10
5.1.40.0100.0328.07
5.1.30.0090.0398.43
5.1.20.0120.0578.45
5.1.10.0170.0528.17
5.1.00.0220.0908.17
5.0.50.0120.0416.64
5.0.40.0080.0346.50
5.0.30.0060.0596.31
5.0.20.0020.0276.28
5.0.10.0060.0256.26
5.0.00.0030.0386.25
4.4.90.0020.0224.78
4.4.80.0050.0204.75
4.4.70.0030.0214.75
4.4.60.0040.0214.76
4.4.50.0030.0224.77
4.4.40.0020.0374.71
4.4.30.0070.0174.75
4.4.20.0030.0224.84
4.4.10.0060.0204.85
4.4.00.0020.0334.76
4.3.110.0080.0274.67
4.3.100.0050.0204.67
4.3.90.0030.0274.63
4.3.80.0040.0694.58
4.3.70.0080.0364.63
4.3.60.0080.0294.62
4.3.50.0040.0224.63
4.3.40.0050.0404.54
4.3.30.0050.0343.30
4.3.20.0050.0303.28
4.3.10.0080.0173.23
4.3.00.0130.01716.93

preferences:
47.12 ms | 401 KiB | 5 Q