3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __call($name, $args){ echo "__call " . $name . PHP_EOL; } public static function __callStatic($name, $args) { echo "__callStatic " . $name . PHP_EOL; } function make_call() { $this->bob(); } function make_call_static() { self::ted(); } } $x = new foo(); $x->jim(); $x->make_call(); $x->make_call_static();

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.0130.00616.38
8.3.50.0170.00321.98
8.3.40.0060.00918.75
8.3.30.0040.01119.01
8.3.20.0000.00820.39
8.3.10.0030.00523.38
8.3.00.0050.00318.95
8.2.180.0120.00316.50
8.2.170.0040.01122.96
8.2.160.0070.00720.50
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.00726.16
8.2.120.0040.00420.70
8.2.110.0070.00320.47
8.2.100.0090.00317.79
8.2.90.0040.00418.23
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0070.00318.03
8.2.50.0030.00518.07
8.2.40.0000.00819.34
8.2.30.0060.00318.30
8.2.20.0000.00817.75
8.2.10.0000.00718.04
8.2.00.0060.00317.66
8.1.280.0090.00625.92
8.1.270.0140.00023.83
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0070.00321.84
8.1.230.0070.00420.91
8.1.220.0080.00017.74
8.1.210.0080.00018.96
8.1.200.0050.00517.35
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0080.00018.46
8.1.160.0000.00721.95
8.1.150.0050.00218.55
8.1.140.0030.00617.46
8.1.130.0030.00317.82
8.1.120.0070.00017.50
8.1.110.0000.00717.43
8.1.100.0030.00317.36
8.1.90.0000.00817.36
8.1.80.0060.00317.42
8.1.70.0000.00717.43
8.1.60.0000.00817.62
8.1.50.0000.00717.55
8.1.40.0030.00517.44
8.1.30.0000.00817.59
8.1.20.0000.00717.49
8.1.10.0040.00417.54
8.1.00.0040.00417.47
8.0.300.0040.00419.96
8.0.290.0080.00017.18
8.0.280.0040.00418.36
8.0.270.0000.00817.23
8.0.260.0000.00617.27
8.0.250.0000.00716.91
8.0.240.0040.00416.92
8.0.230.0070.00016.81
8.0.220.0000.00616.80
8.0.210.0030.00316.90
8.0.200.0000.00616.93
8.0.190.0040.00416.89
8.0.180.0030.00616.88
8.0.170.0000.00716.82
8.0.160.0000.00816.93
8.0.150.0080.00016.73
8.0.140.0030.00416.91
8.0.130.0030.00313.28
8.0.120.0050.00316.88
8.0.110.0040.00416.81
8.0.100.0030.00416.92
8.0.90.0040.00416.84
8.0.80.0070.00716.86
8.0.70.0040.00416.67
8.0.60.0040.00416.71
8.0.50.0070.00016.80
8.0.30.0050.01417.14
8.0.20.0080.01217.40
8.0.10.0070.00016.99
8.0.00.0110.00716.73
7.4.330.0060.00015.00
7.4.320.0000.00716.42
7.4.300.0030.00316.61
7.4.290.0070.00016.65
7.4.280.0000.00716.44
7.4.270.0040.00416.36
7.4.260.0000.00616.49
7.4.250.0000.00716.37
7.4.240.0020.00516.60
7.4.230.0030.00316.58
7.4.220.0060.01016.43
7.4.210.0120.00716.60
7.4.200.0000.00816.68
7.4.190.0030.00316.77
7.4.160.0150.00816.50
7.4.150.0130.00617.40
7.4.140.0110.00717.86
7.4.130.0080.00816.36
7.4.120.0090.00716.56
7.4.110.0060.01616.51
7.4.100.0150.00816.42
7.4.90.0090.00916.56
7.4.80.0120.00919.39
7.4.70.0070.01016.47
7.4.60.0080.00916.46
7.4.50.0080.00016.43
7.4.40.0060.01016.30
7.4.30.0060.01216.35
7.4.10.0080.01115.64
7.4.00.0090.00815.37
7.3.330.0020.00213.14
7.3.320.0000.00513.16
7.3.310.0040.00416.34
7.3.300.0030.00316.14
7.3.290.0090.01216.21
7.3.280.0070.00916.29
7.3.270.0100.00717.40
7.3.260.0100.01716.51
7.3.250.0120.00916.30
7.3.240.0130.00316.49
7.3.230.0040.01416.39
7.3.210.0040.02016.44
7.3.200.0090.00619.39
7.3.190.0120.00916.59
7.3.180.0000.01616.21
7.3.170.0120.00616.27
7.3.160.0040.01216.53
7.3.130.0100.01015.63
7.3.120.0040.01315.23
7.3.110.0110.00615.58
7.3.100.0080.00515.50
7.3.90.0120.00315.62
7.3.80.0080.00615.68
7.3.70.0040.00915.46
7.3.60.0040.00915.53
7.3.50.0070.00115.52
7.3.40.0050.00715.54
7.3.30.0070.00515.56
7.3.20.0080.00617.40
7.3.10.0060.00816.90
7.3.00.0040.00916.85
7.2.330.0100.00716.39
7.2.320.0100.00716.68
7.2.310.0070.01316.57
7.2.300.0000.01716.74
7.2.290.0070.01116.78
7.2.260.0050.01415.66
7.2.250.0060.01315.96
7.2.240.0030.01015.65
7.2.230.0120.00115.74
7.2.220.0070.00515.63
7.2.210.0050.00815.84
7.2.200.0070.00515.66
7.2.190.0040.01315.71
7.2.180.0070.00515.65
7.2.170.0040.00715.73
7.2.160.0030.00915.74
7.2.150.0050.00917.64
7.2.140.0070.00717.70
7.2.130.0080.00417.27
7.2.120.0080.00717.47
7.2.110.0040.00817.30
7.2.100.0080.00717.47
7.2.90.0030.01117.38
7.2.80.0060.00717.25
7.2.70.0080.00517.51
7.2.60.0060.01017.20
7.2.50.0050.01017.31
7.2.40.0070.00817.44
7.2.30.0010.01217.42
7.2.20.0060.00917.37
7.2.10.0040.01017.33
7.2.00.0070.00817.25
7.1.330.0060.00816.36
7.1.320.0030.00816.56
7.1.310.0020.00916.38
7.1.300.0040.00616.23
7.1.290.0080.00316.42
7.1.280.0090.00616.55
7.1.270.0040.01216.46
7.1.260.0080.00516.44
7.1.250.0020.01116.29
7.1.240.0070.00316.22
7.1.230.0080.00416.32
7.1.220.0060.00616.42
7.1.210.0050.01016.34
7.1.200.0050.00816.34
7.1.190.0040.00916.51
7.1.180.0090.00416.26
7.1.170.0050.00716.47
7.1.160.0100.00516.42
7.1.150.0080.00616.39
7.1.140.0070.00916.43
7.1.130.0050.01116.53
7.1.120.0030.00916.33
7.1.110.0070.00516.37
7.1.100.0040.00817.17
7.1.90.0050.00816.50
7.1.80.0040.00716.46
7.1.70.0060.00516.74
7.1.60.0050.00917.45
7.1.50.0080.00716.63
7.1.40.0070.00916.56
7.1.30.0080.00416.34
7.1.20.0060.00916.50
7.1.10.0070.00516.49
7.1.00.0050.02918.46
7.0.330.0060.00416.14
7.0.320.0060.00616.18
7.0.310.0080.00316.24
7.0.300.0040.00616.21
7.0.290.0020.01316.01
7.0.280.0050.00716.19
7.0.270.0060.00815.97
7.0.260.0080.00615.98
7.0.250.0070.00716.15
7.0.240.0070.00516.14
7.0.230.0060.00816.14
7.0.220.0000.01516.35
7.0.210.0040.00716.26
7.0.200.0050.00716.20
7.0.190.0070.00515.96
7.0.180.0050.01016.08
7.0.170.0080.00516.19
7.0.160.0050.00716.29
7.0.150.0030.01016.04
7.0.140.0050.02618.21
7.0.130.0050.00916.25
7.0.120.0050.00816.19
7.0.110.0060.00616.26
7.0.100.0070.01917.37
7.0.90.0090.02117.40
7.0.80.0050.01717.47
7.0.70.0040.02017.49
7.0.60.0040.01817.51
7.0.50.0100.01417.62
7.0.40.0050.02216.12
7.0.30.0050.02316.22
7.0.20.0040.01916.19
7.0.10.0020.02216.15
7.0.00.0010.02016.19
5.6.400.0030.00815.22
5.6.390.0050.00714.87
5.6.380.0070.00514.99
5.6.370.0050.00915.21
5.6.360.0070.00715.39
5.6.350.0040.00715.13
5.6.340.0090.00614.99
5.6.330.0040.01115.01
5.6.320.0070.00515.19
5.6.310.0050.00914.97
5.6.300.0030.01114.99
5.6.290.0030.00914.99
5.6.280.0110.02517.27
5.6.270.0020.01115.13
5.6.260.0030.00815.11
5.6.250.0070.02016.95
5.6.240.0010.02117.08
5.6.230.0060.02016.94
5.6.220.0030.02016.97
5.6.210.0040.01916.99
5.6.200.0090.01917.08
5.6.190.0020.02017.18
5.6.180.0040.01917.06
5.6.170.0060.02017.13
5.6.160.0030.02117.03
5.6.150.0050.01717.06
5.6.140.0040.01917.04
5.6.130.0080.01517.13
5.6.120.0060.01816.99
5.6.110.0070.01917.16
5.6.100.0060.02017.11
5.6.90.0050.01517.10
5.6.80.0040.01716.82
5.6.70.0040.01716.81
5.6.60.0070.01516.80
5.6.50.0080.01316.68
5.6.40.0020.01716.80
5.6.30.0100.01416.71
5.6.20.0030.01816.71
5.6.10.0070.01916.72
5.6.00.0070.01616.69
5.5.380.0070.01616.86
5.5.370.0040.02216.82
5.5.360.0050.01516.71
5.5.350.0030.02516.84
5.5.340.0090.01717.13
5.5.330.0050.02016.91
5.5.320.0080.01416.91
5.5.310.0090.01616.90
5.5.300.0070.01916.92
5.5.290.0060.01817.04
5.5.280.0040.01916.89
5.5.270.0070.01817.01
5.5.260.0100.01416.87
5.5.250.0040.01816.89
5.5.240.0040.01816.61
5.5.230.0050.01916.72
5.5.220.0030.01916.52
5.5.210.0070.01816.68
5.5.200.0040.01716.67
5.5.190.0070.01416.62
5.5.180.0040.01916.65
5.5.170.0060.00714.95
5.5.160.0030.01916.60
5.5.150.0080.01616.76
5.5.140.0090.01416.79
5.5.130.0070.02916.65
5.5.120.0040.03116.60
5.5.110.0050.02716.71
5.5.100.0090.03016.62
5.5.90.0070.01916.64
5.5.80.0050.02216.66
5.5.70.0070.01716.63
5.5.60.0060.02016.64
5.5.50.0040.02216.60
5.5.40.0080.02416.67
5.5.30.0090.02016.72
5.5.20.0060.02316.58
5.5.10.0030.03116.51
5.5.00.0050.03116.52
5.4.450.0050.01714.70
5.4.440.0030.01514.71
5.4.430.0050.01614.73
5.4.420.0070.01314.72
5.4.410.0040.01914.70
5.4.400.0030.01714.55
5.4.390.0030.01414.52
5.4.380.0020.01814.53
5.4.370.0040.01514.57
5.4.360.0070.01314.50
5.4.350.0020.01514.54
5.4.340.0030.01714.62
5.4.330.0050.00312.25
5.4.320.0020.01714.59
5.4.310.0070.01214.52
5.4.300.0050.03114.56
5.4.290.0030.01714.55
5.4.280.0080.01614.56
5.4.270.0020.02814.55
5.4.260.0040.03414.61
5.4.250.0010.03214.55
5.4.240.0030.01814.55
5.4.230.0030.02614.56
5.4.220.0030.01914.55
5.4.210.0050.01714.62
5.4.200.0040.01914.49
5.4.190.0020.02214.53
5.4.180.0040.01614.52
5.4.170.0040.02014.58
5.4.160.0030.01914.52
5.4.150.0050.01914.60
5.4.140.0050.01813.69
5.4.130.0070.01613.66
5.4.120.0100.01813.68
5.4.110.0030.01513.71
5.4.100.0020.01713.72
5.4.90.0020.01613.65
5.4.80.0040.02613.67
5.4.70.0020.01613.67
5.4.60.0020.01813.66
5.4.50.0070.02713.70
5.4.40.0020.02113.63
5.4.30.0050.02613.69
5.4.20.0030.02713.62
5.4.10.0090.01113.62
5.4.00.0070.01513.41
5.3.290.0030.01813.28
5.3.280.0040.02113.15
5.3.270.0050.02513.25
5.3.260.0030.02013.31
5.3.250.0050.02713.24
5.3.240.0040.01813.21
5.3.230.0100.01513.14
5.3.220.0050.01913.12
5.3.210.0080.02013.12
5.3.200.0030.02113.18
5.3.190.0030.01913.10
5.3.180.0020.02413.20
5.3.170.0040.01713.22
5.3.160.0030.01513.22
5.3.150.0040.01613.18
5.3.140.0020.01813.17
5.3.130.0050.01413.23
5.3.120.0090.02613.21
5.3.110.0020.02413.15
5.3.100.0050.01312.98
5.3.90.0040.01713.03
5.3.80.0070.02112.95
5.3.70.0020.02612.98
5.3.60.0060.01413.02
5.3.50.0030.02912.97
5.3.40.0030.02912.97
5.3.30.0020.03013.04
5.3.20.0080.02112.94
5.3.10.0040.02712.85
5.3.00.0050.01412.88
5.2.170.0030.05311.17
5.2.160.0000.03311.04
5.2.150.0030.05711.17
5.2.140.0030.05311.27
5.2.130.0000.03711.11
5.2.120.0070.05011.23
5.2.110.0030.06311.04
5.2.100.0030.06711.04
5.2.90.0070.05711.13
5.2.80.0030.03011.10
5.2.70.0000.04711.09
5.2.60.0030.06311.12
5.2.50.0070.06010.88
5.2.40.0030.05711.06
5.2.30.0130.05011.07
5.2.20.0030.03711.07
5.2.10.0000.03010.81
5.2.00.0000.03710.65
5.1.60.0000.0309.99
5.1.50.0070.02310.05
5.1.40.0100.0379.82
5.1.30.0000.06010.40
5.1.20.0070.05310.36
5.1.10.0030.04710.15
5.1.00.0000.02310.03
5.0.50.0030.0338.56
5.0.40.0000.0338.30
5.0.30.0070.0608.32
5.0.20.0030.0438.24
5.0.10.0100.0378.25
5.0.00.0000.0638.23
4.4.90.0070.0307.95
4.4.80.0030.0337.95
4.4.70.0000.0337.95
4.4.60.0030.0337.95
4.4.50.0030.0177.95
4.4.40.0000.0477.95
4.4.30.0000.0177.95
4.4.20.0000.0407.95
4.4.10.0030.0337.95
4.4.00.0000.0437.95
4.3.110.0000.0377.95
4.3.100.0030.0337.95
4.3.90.0000.0277.95
4.3.80.0070.0337.95
4.3.70.0030.0337.95
4.3.60.0070.0207.95
4.3.50.0000.0207.95
4.3.40.0030.0437.95
4.3.30.0030.0337.95
4.3.20.0000.0277.95
4.3.10.0000.0177.95
4.3.00.0000.0337.95

preferences:
45.16 ms | 401 KiB | 5 Q