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() { foo::ted(); } function make_call_static_non_self() { foo::ted(); } } $x = new foo(); $x->jim(); $x->make_call(); $x->make_call_static(); $x->make_call_static_non_self(); foo::sam();

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.0090.00618.55
8.3.50.0070.01322.05
8.3.40.0060.00818.70
8.3.30.0110.00418.67
8.3.20.0000.00818.63
8.3.10.0050.00320.45
8.3.00.0040.00421.90
8.2.180.0040.01416.38
8.2.170.0160.00322.96
8.2.160.0070.01120.70
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00519.48
8.2.110.0030.00620.51
8.2.100.0080.00417.72
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00818.04
8.2.50.0060.00318.07
8.2.40.0000.00718.16
8.2.30.0030.00717.98
8.2.20.0040.00417.65
8.2.10.0040.00417.68
8.2.00.0040.00417.75
8.1.280.0070.01025.92
8.1.270.0030.00522.06
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0090.00317.52
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0060.00616.63
8.1.180.0060.00318.10
8.1.170.0000.00818.71
8.1.160.0030.00518.85
8.1.150.0070.00018.60
8.1.140.0000.00717.51
8.1.130.0040.00417.79
8.1.120.0070.00017.32
8.1.110.0040.00417.36
8.1.100.0050.00217.52
8.1.90.0000.00717.39
8.1.80.0050.00317.46
8.1.70.0030.00317.46
8.1.60.0060.00317.57
8.1.50.0050.00317.46
8.1.40.0040.00417.51
8.1.30.0000.00717.64
8.1.20.0040.00417.63
8.1.10.0050.00217.52
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.41
8.0.270.0000.00717.18
8.0.260.0070.00316.70
8.0.250.0070.00016.86
8.0.240.0050.00316.82
8.0.230.0030.00316.91
8.0.220.0030.00316.86
8.0.210.0000.00816.84
8.0.200.0040.00416.93
8.0.190.0030.00516.94
8.0.180.0070.00016.94
8.0.170.0030.00316.78
8.0.160.0000.00716.99
8.0.150.0000.00916.86
8.0.140.0000.00816.84
8.0.130.0000.00613.41
8.0.120.0000.00816.89
8.0.110.0030.00516.96
8.0.100.0030.00616.79
8.0.90.0070.00016.84
8.0.80.0060.01216.80
8.0.70.0050.00316.71
8.0.60.0040.00416.72
8.0.50.0000.00816.89
8.0.30.0150.00317.00
8.0.20.0060.01217.40
8.0.10.0040.00416.96
8.0.00.0080.01016.90
7.4.330.0030.00314.77
7.4.320.0030.00516.43
7.4.300.0000.00616.53
7.4.290.0070.00016.53
7.4.280.0000.00716.63
7.4.270.0040.00416.50
7.4.260.0050.00013.32
7.4.250.0030.00516.39
7.4.240.0040.00416.52
7.4.230.0070.00016.39
7.4.220.0060.01016.55
7.4.210.0070.00816.54
7.4.200.0030.00316.48
7.4.190.0070.00016.57
7.4.160.0060.00916.30
7.4.150.0060.01117.40
7.4.140.0080.00817.86
7.4.130.0060.01116.54
7.4.120.0090.00816.41
7.4.110.0070.01716.37
7.4.100.0090.00916.36
7.4.90.0090.01216.46
7.4.80.0060.01119.04
7.4.70.0100.00716.46
7.4.60.0140.00716.49
7.4.50.0060.00316.64
7.4.40.0060.00822.27
7.4.30.0140.00616.45
7.4.10.0100.00714.66
7.4.00.0050.01014.95
7.3.330.0050.00013.25
7.3.320.0040.00413.13
7.3.310.0040.00416.12
7.3.300.0030.00316.31
7.3.290.0080.00816.28
7.3.280.0080.00816.34
7.3.270.0070.01017.40
7.3.260.0090.01418.24
7.3.250.0110.00916.50
7.3.240.0110.00816.28
7.3.230.0070.01016.39
7.3.210.0100.00616.50
7.3.200.0180.00419.39
7.3.190.0150.00916.37
7.3.180.0040.01116.22
7.3.170.0090.00916.63
7.3.160.0090.00616.56
7.3.130.0120.00615.08
7.3.120.0080.00914.89
7.3.110.0110.00914.64
7.3.100.0100.00314.88
7.3.90.0030.01314.80
7.3.80.0050.00514.71
7.3.70.0000.01214.85
7.3.60.0040.01114.54
7.3.50.0060.00914.79
7.3.40.0090.00014.62
7.3.30.0100.00314.53
7.3.20.0070.00716.52
7.3.10.0060.00616.67
7.3.00.0070.00716.41
7.2.330.0150.00316.59
7.2.320.0060.01216.62
7.2.310.0110.01016.50
7.2.300.0040.01216.72
7.2.290.0110.00716.61
7.2.260.0060.00614.74
7.2.250.0060.01215.19
7.2.240.0120.00314.92
7.2.230.0120.00315.28
7.2.220.0000.01614.95
7.2.210.0130.00315.22
7.2.200.0100.00714.82
7.2.190.0040.01114.88
7.2.180.0100.00415.12
7.2.170.0070.00315.20
7.2.160.0000.00914.83
7.2.150.0000.01616.91
7.2.140.0030.01316.79
7.2.130.0000.01017.05
7.2.120.0040.01216.90
7.2.110.0050.00516.76
7.2.100.0130.00316.80
7.2.90.0030.01016.97
7.2.80.0040.01117.02
7.2.70.0040.01116.83
7.2.60.0030.01616.72
7.2.50.0030.01316.98
7.2.40.0060.00616.89
7.2.30.0070.01016.96
7.2.20.0030.00917.07
7.2.10.0030.00716.64
7.2.00.0100.00618.01
7.1.330.0060.00615.81
7.1.320.0080.00615.82
7.1.310.0110.00315.70
7.1.300.0060.00315.77
7.1.290.0100.00615.66
7.1.280.0070.00415.74
7.1.270.0090.00615.68
7.1.260.0070.00715.52
7.1.250.0110.00015.53
7.1.240.0000.00915.36
7.1.230.0000.00915.72
7.1.220.0100.00315.62
7.1.210.0040.01115.91
7.1.200.0060.00615.85
7.1.190.0030.01215.50
7.1.180.0190.00015.77
7.1.170.0030.01215.83
7.1.160.0030.01015.78
7.1.150.0090.00615.63
7.1.140.0100.00015.59
7.1.130.0000.01115.45
7.1.120.0030.00915.93
7.1.110.0090.00615.45
7.1.100.0050.01016.90
7.1.90.0030.01015.67
7.1.80.0070.00715.66
7.1.70.0030.00816.12
7.1.60.0100.00917.56
7.1.50.0020.01416.33
7.1.40.0050.00515.63
7.1.30.0060.00615.73
7.1.20.0060.00615.86
7.1.10.0080.00615.77
7.1.00.0070.02019.07
7.0.330.0030.01015.36
7.0.320.0080.00615.51
7.0.310.0070.00715.37
7.0.300.0080.00415.40
7.0.290.0000.01215.39
7.0.280.0110.00015.39
7.0.270.0030.01015.34
7.0.260.0000.01415.33
7.0.250.0060.00615.55
7.0.240.0070.00715.45
7.0.230.0060.00315.54
7.0.220.0040.00815.35
7.0.210.0000.01315.43
7.0.200.0030.00616.07
7.0.190.0060.00915.39
7.0.180.0040.00715.33
7.0.170.0070.00715.37
7.0.160.0050.00515.41
7.0.150.0090.00615.27
7.0.140.0070.04218.76
7.0.130.0000.01115.57
7.0.120.0060.00615.40
7.0.110.0130.00015.11
7.0.100.0060.00615.39
7.0.90.0000.01315.12
7.0.80.0080.00415.06
7.0.70.0070.00715.07
7.0.60.0040.04317.64
7.0.50.0040.04616.55
7.0.40.0060.03515.57
7.0.30.0090.04215.59
7.0.20.0100.04315.63
7.0.10.0090.03715.53
7.0.00.0090.04215.58
5.6.400.0040.00414.27
5.6.390.0090.00613.95
5.6.380.0100.00314.65
5.6.370.0000.01014.41
5.6.360.0040.01114.35
5.6.350.0030.00714.25
5.6.340.0000.01714.51
5.6.330.0040.01114.24
5.6.320.0110.00314.64
5.6.310.0090.00314.56
5.6.300.0040.01214.20
5.6.290.0070.00714.10
5.6.280.0030.04117.79
5.6.270.0060.00914.20
5.6.260.0070.00414.46
5.6.250.0030.00914.23
5.6.240.0090.00914.27
5.6.230.0080.01214.07
5.6.220.0030.00814.31
5.6.210.0050.04517.49
5.6.200.0050.03916.32
5.6.190.0070.04316.12
5.6.180.0080.04416.21
5.6.170.0070.04116.12
5.6.160.0050.04116.20
5.6.150.0070.02716.12
5.6.140.0070.02316.36
5.6.130.0130.03816.17
5.6.120.0080.02016.29
5.6.110.0070.02316.27
5.6.100.0030.02516.27
5.6.90.0060.02516.24
5.6.80.0030.02415.98
5.6.70.0070.02515.83
5.6.60.0030.02316.03
5.6.50.0080.02016.01
5.6.40.0000.02815.83
5.6.30.0060.02315.98
5.6.20.0060.02615.95
5.6.10.0060.02116.01
5.6.00.0080.02015.75
5.5.380.0100.00714.12
5.5.370.0070.01114.19
5.5.360.0090.00614.37
5.5.350.0090.02217.26
5.5.340.0080.04315.98
5.5.330.0030.04516.11
5.5.320.0070.04016.21
5.5.310.0050.04316.04
5.5.300.0100.04016.30
5.5.290.0050.02716.20
5.5.280.0050.02516.07
5.5.270.0050.02316.04
5.5.260.0010.02616.09
5.5.250.0050.02515.93
5.5.240.0050.02315.76
5.5.230.0070.02015.96
5.5.220.0030.02115.96
5.5.210.0030.02115.86
5.5.200.0050.02315.85
5.5.190.0030.02515.83
5.5.180.0020.02315.87
5.5.170.0100.00414.02
5.5.160.0040.02315.84
5.5.150.0060.02015.60
5.5.140.0070.02215.75
5.5.130.0020.02515.63
5.5.120.0050.02215.82
5.5.110.0030.02715.70
5.5.100.0020.02215.87
5.5.90.0080.01815.60
5.5.80.0100.01815.76
5.5.70.0030.02315.79
5.5.60.0020.04015.63
5.5.50.0060.02515.69
5.5.40.0080.03315.84
5.5.30.0030.03315.68
5.5.20.0040.03015.75
5.5.10.0030.04515.79
5.5.00.0070.04215.51
5.4.450.0030.04516.20
5.4.440.0050.02316.19
5.4.430.0050.02016.14
5.4.420.0110.01416.13
5.4.410.0090.01816.08
5.4.400.0060.01816.04
5.4.390.0040.02115.99
5.4.380.0050.02016.03
5.4.370.0060.01816.03
5.4.360.0070.02216.00
5.4.350.0090.01615.98
5.4.340.0000.02316.05
5.4.330.0060.00812.96
5.4.320.0020.02216.00
5.4.310.0050.02416.00
5.4.300.0050.01816.04
5.4.290.0080.01816.04
5.4.280.0040.02015.99
5.4.270.0070.01816.04
5.4.260.0080.01716.00
5.4.250.0000.02415.97
5.4.240.0030.03216.00
5.4.230.0030.02416.03
5.4.220.0010.03015.96
5.4.210.0050.02716.04
5.4.200.0050.04015.98
5.4.190.0050.03216.02
5.4.180.0070.03615.99
5.4.170.0070.04415.98
5.4.160.0070.03815.98
5.4.150.0000.03515.91
5.4.140.0030.04014.68
5.4.130.0050.04014.66
5.4.120.0050.02014.60
5.4.110.0070.03714.72
5.4.100.0050.03614.63
5.4.90.0050.03414.68
5.4.80.0000.02714.70
5.4.70.0070.03114.71
5.4.60.0020.02714.76
5.4.50.0100.02914.69
5.4.40.0030.03314.65
5.4.30.0050.02014.65
5.4.20.0030.02714.67
5.4.10.0060.02514.63
5.4.00.0070.03614.32
5.3.290.0020.02313.82
5.3.280.0070.03813.77
5.3.270.0050.03013.80
5.3.260.0090.03113.84
5.3.250.0050.04013.82
5.3.240.0050.02813.79
5.3.230.0090.03713.71
5.3.220.0050.04013.78
5.3.210.0100.04013.79
5.3.200.0050.04213.74
5.3.190.0050.03913.78
5.3.180.0030.03813.79
5.3.170.0100.03513.81
5.3.160.0070.04213.75
5.3.150.0040.04313.80
5.3.140.0080.03213.76
5.3.130.0050.02713.79
5.3.120.0090.03913.77
5.3.110.0050.04113.77
5.3.100.0070.03013.52
5.3.90.0070.01813.51
5.3.80.0050.02713.51
5.3.70.0040.04513.50
5.3.60.0100.01713.43
5.3.50.0070.03913.47
5.3.40.0050.02913.48
5.3.30.0060.03513.39
5.3.20.0030.03513.28
5.3.10.0080.03513.33
5.3.00.0080.02613.35
5.2.170.0070.06011.18
5.2.160.0070.06011.05
5.2.150.0030.04711.19
5.2.140.0000.06711.05
5.2.130.0100.03011.12
5.2.120.0030.06011.00
5.2.110.0100.05711.18
5.2.100.0000.05311.14
5.2.90.0100.03011.31
5.2.80.0030.06311.30
5.2.70.0070.06310.98
5.2.60.0030.04311.05
5.2.50.0030.05711.07
5.2.40.0000.04011.04
5.2.30.0070.03010.97
5.2.20.0130.01710.81
5.2.10.0030.03310.82
5.2.00.0130.05310.78
5.1.60.0000.0379.99
5.1.50.0000.06010.05
5.1.40.0030.0479.97
5.1.30.0070.04010.37
5.1.20.0070.05310.31
5.1.10.0070.04310.05
5.1.00.0000.06310.16
5.0.50.0070.0478.49
5.0.40.0070.0438.25
5.0.30.0000.0708.17
5.0.20.0000.0508.25
5.0.10.0030.0308.24
5.0.00.0000.0678.23
4.4.90.0000.0307.80
4.4.80.0030.0337.80
4.4.70.0070.0237.80
4.4.60.0070.0237.80
4.4.50.0070.0277.80
4.4.40.0000.0407.80
4.4.30.0100.0277.80
4.4.20.0030.0307.80
4.4.10.0000.0207.80
4.4.00.0000.0407.80
4.3.110.0130.0237.80
4.3.100.0030.0277.80
4.3.90.0030.0207.80
4.3.80.0000.0537.80
4.3.70.0030.0337.80
4.3.60.0030.0237.80
4.3.50.0000.0307.80
4.3.40.0030.0377.80
4.3.30.0000.0377.80
4.3.20.0070.0337.80
4.3.10.0000.0377.80
4.3.00.0000.0207.80

preferences:
63.62 ms | 401 KiB | 5 Q