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_static() { foo::ted(); } function make_call_static_non_self() { foo::ted(); } } $x = new foo(); $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.0140.00018.31
8.3.50.0070.00822.05
8.3.40.0070.00718.84
8.3.30.0100.00319.09
8.3.20.0040.00420.38
8.3.10.0030.00522.09
8.3.00.0000.00822.37
8.2.180.0110.00716.63
8.2.170.0100.00622.96
8.2.160.0070.00720.70
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0090.00019.48
8.2.110.0060.00321.89
8.2.100.0060.00617.78
8.2.90.0040.00419.21
8.2.80.0080.00017.97
8.2.70.0130.00617.25
8.2.60.0030.00717.55
8.2.50.0040.00418.07
8.2.40.0000.00818.16
8.2.30.0030.00518.06
8.2.20.0050.00317.57
8.2.10.0030.00517.75
8.2.00.0040.00417.55
8.1.280.0070.00725.92
8.1.270.0060.00322.05
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.97
8.1.230.0040.00819.16
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00617.23
8.1.190.0000.00817.50
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0030.00722.01
8.1.150.0040.00418.54
8.1.140.0000.00717.45
8.1.130.0000.00717.80
8.1.120.0000.00717.43
8.1.110.0000.00717.37
8.1.100.0000.00717.41
8.1.90.0040.00417.43
8.1.80.0000.00717.42
8.1.70.0000.00617.44
8.1.60.0000.00917.57
8.1.50.0040.00417.57
8.1.40.0000.00717.39
8.1.30.0000.00817.68
8.1.20.0030.00517.65
8.1.10.0000.00717.59
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0030.00318.45
8.0.270.0050.00217.16
8.0.260.0030.00316.81
8.0.250.0030.00316.98
8.0.240.0030.00616.93
8.0.230.0030.00316.94
8.0.220.0000.00716.91
8.0.210.0030.00316.89
8.0.200.0000.00716.99
8.0.190.0000.00716.88
8.0.180.0040.00416.84
8.0.170.0000.00916.93
8.0.160.0040.00416.98
8.0.150.0070.00016.75
8.0.140.0070.00016.75
8.0.130.0000.00513.23
8.0.120.0000.00816.89
8.0.110.0000.00716.71
8.0.100.0000.00716.82
8.0.90.0000.00716.68
8.0.80.0140.00316.93
8.0.70.0000.00716.95
8.0.60.0040.00416.82
8.0.50.0050.00216.63
8.0.30.0190.00217.16
8.0.20.0120.00917.40
8.0.10.0000.00716.88
8.0.00.0060.01316.83
7.4.330.0050.00015.08
7.4.320.0070.00016.43
7.4.300.0030.00316.59
7.4.290.0030.00316.68
7.4.280.0000.00616.60
7.4.270.0070.00016.50
7.4.260.0030.00316.58
7.4.250.0080.00016.45
7.4.240.0050.00216.58
7.4.230.0030.00316.68
7.4.220.0060.00916.66
7.4.210.0080.00616.56
7.4.200.0070.00016.30
7.4.190.0050.00316.47
7.4.160.0140.00416.48
7.4.150.0060.01217.40
7.4.140.0130.00817.86
7.4.130.0100.00716.51
7.4.120.0120.00516.46
7.4.110.0130.00316.38
7.4.100.0060.01016.62
7.4.90.0150.00316.38
7.4.80.0060.01116.44
7.4.70.0070.01516.46
7.4.60.0060.01316.22
7.4.50.0080.00016.35
7.4.40.0030.01222.77
7.4.30.0080.00816.57
7.4.10.0050.01315.83
7.4.00.0070.00915.48
7.3.330.0030.00313.15
7.3.320.0050.00013.32
7.3.310.0000.00716.16
7.3.300.0000.00716.15
7.3.290.0060.00616.36
7.3.280.0090.00716.30
7.3.270.0060.01217.40
7.3.260.0110.00716.54
7.3.250.0080.00916.28
7.3.240.0060.01416.31
7.3.230.0120.00616.39
7.3.210.0100.00616.45
7.3.200.0060.01619.39
7.3.190.0110.00516.45
7.3.180.0040.01416.44
7.3.170.0060.00916.53
7.3.160.0130.01016.46
7.3.130.0090.00815.63
7.3.120.0110.00715.47
7.3.110.0080.00915.42
7.3.100.0070.00815.60
7.3.90.0070.00715.52
7.3.80.0050.01215.45
7.3.70.0090.00815.50
7.3.60.0080.00915.54
7.3.50.0050.00715.43
7.3.40.0030.01015.53
7.3.30.0060.00615.53
7.3.20.0090.00617.27
7.3.10.0070.00517.10
7.3.00.0050.01117.15
7.2.330.0100.00716.58
7.2.320.0130.01016.51
7.2.310.0060.01016.45
7.2.300.0180.00016.70
7.2.290.0030.01316.39
7.2.260.0100.00915.62
7.2.250.0050.01415.84
7.2.240.0090.01015.71
7.2.230.0070.01015.81
7.2.220.0030.01115.57
7.2.210.0040.00915.93
7.2.200.0090.00515.82
7.2.190.0040.01015.85
7.2.180.0040.00715.83
7.2.170.0060.00915.78
7.2.160.0030.01115.74
7.2.150.0050.00517.66
7.2.140.0050.01017.71
7.2.130.0040.01017.52
7.2.120.0090.00717.29
7.2.110.0030.01117.34
7.2.100.0090.00317.37
7.2.90.0060.00717.40
7.2.80.0030.00917.49
7.2.70.0020.00917.42
7.2.60.0060.00817.32
7.2.50.0080.00517.47
7.2.40.0040.00917.49
7.2.30.0060.00917.39
7.2.20.0080.00717.34
7.2.10.0080.00517.43
7.2.00.0080.00717.42
7.1.330.0100.00716.52
7.1.320.0090.00716.56
7.1.310.0070.00716.57
7.1.300.0070.00816.50
7.1.290.0040.00616.58
7.1.280.0060.00516.59
7.1.270.0070.00816.48
7.1.260.0050.00716.63
7.1.250.0050.00716.26
7.1.240.0070.00516.33
7.1.230.0050.00816.37
7.1.220.0090.00616.58
7.1.210.0060.00916.41
7.1.200.0130.00616.20
7.1.190.0090.00716.55
7.1.180.0060.00816.61
7.1.170.0090.00316.43
7.1.160.0080.00616.52
7.1.150.0040.01016.34
7.1.140.0050.01016.28
7.1.130.0050.01116.20
7.1.120.0100.00316.42
7.1.110.0060.00616.31
7.1.100.0070.00916.62
7.1.90.0040.01016.49
7.1.80.0050.00916.46
7.1.70.0030.01016.56
7.1.60.0030.01217.54
7.1.50.0060.01116.48
7.1.40.0040.00716.55
7.1.30.0080.00616.38
7.1.20.0070.00616.52
7.1.10.0020.01216.44
7.1.00.0060.03018.36
7.0.330.0050.00616.27
7.0.320.0060.00716.12
7.0.310.0020.01016.19
7.0.300.0030.01016.25
7.0.290.0050.00616.06
7.0.280.0050.00916.15
7.0.270.0030.01116.07
7.0.260.0030.01016.16
7.0.250.0060.00616.32
7.0.240.0050.00816.26
7.0.230.0060.00716.18
7.0.220.0060.00716.21
7.0.210.0050.00516.29
7.0.200.0060.00516.35
7.0.190.0080.00516.20
7.0.180.0060.00316.16
7.0.170.0050.00916.27
7.0.160.0050.00716.21
7.0.150.0040.01016.14
7.0.140.0070.02918.19
7.0.130.0040.00916.10
7.0.120.0070.00616.17
7.0.110.0040.00916.34
7.0.100.0090.01717.47
7.0.90.0090.02017.43
7.0.80.0080.01517.37
7.0.70.0070.01817.29
7.0.60.0080.01917.52
7.0.50.0070.01717.48
7.0.40.0060.01416.20
7.0.30.0020.02416.14
7.0.20.0030.02116.24
7.0.10.0030.02116.06
7.0.00.0040.02016.17
5.6.400.0070.00515.09
5.6.390.0090.00814.99
5.6.380.0060.00915.01
5.6.370.0060.00415.14
5.6.360.0060.00815.27
5.6.350.0100.00615.07
5.6.340.0000.01415.28
5.6.330.0060.00615.27
5.6.320.0070.01015.20
5.6.310.0060.00815.36
5.6.300.0090.00714.96
5.6.290.0060.01015.02
5.6.280.0080.02717.02
5.6.270.0080.00815.04
5.6.260.0060.00515.18
5.6.250.0050.01916.93
5.6.240.0030.01917.13
5.6.230.0030.02217.05
5.6.220.0090.01616.86
5.6.210.0040.02016.97
5.6.200.0050.02017.00
5.6.190.0060.01917.25
5.6.180.0060.02617.05
5.6.170.0040.01717.03
5.6.160.0090.01617.05
5.6.150.0080.01817.00
5.6.140.0020.01917.03
5.6.130.0050.01817.17
5.6.120.0060.02017.00
5.6.110.0020.02316.98
5.6.100.0030.02517.08
5.6.90.0050.02917.02
5.6.80.0120.02916.94
5.6.70.0090.02016.92
5.6.60.0030.03516.76
5.6.50.0090.02016.86
5.6.40.0050.03316.86
5.6.30.0090.01816.83
5.6.20.0090.02816.78
5.6.10.0060.02416.82
5.6.00.0080.02916.90
5.5.380.0070.01916.92
5.5.370.0060.01816.77
5.5.360.0060.01916.86
5.5.350.0030.02016.83
5.5.340.0070.02216.81
5.5.330.0040.02117.03
5.5.320.0020.02016.92
5.5.310.0020.02116.95
5.5.300.0030.01817.04
5.5.290.0100.01517.04
5.5.280.0070.01816.94
5.5.270.0050.01716.89
5.5.260.0060.02216.85
5.5.250.0030.02616.81
5.5.240.0080.03116.74
5.5.230.0070.03316.71
5.5.220.0080.03016.60
5.5.210.0100.02416.67
5.5.200.0060.03216.77
5.5.190.0080.03016.59
5.5.180.0070.03316.63
5.5.170.0070.00515.05
5.5.160.0030.03216.82
5.5.150.0070.02816.66
5.5.140.0050.03316.72
5.5.130.0060.03816.50
5.5.120.0080.02816.77
5.5.110.0050.02916.71
5.5.100.0100.02716.56
5.5.90.0090.02816.58
5.5.80.0080.01816.70
5.5.70.0080.01916.43
5.5.60.0060.02816.75
5.5.50.0100.03016.60
5.5.40.0090.02216.65
5.5.30.0060.03016.58
5.5.20.0040.02816.64
5.5.10.0030.01916.58
5.5.00.0080.02616.62
5.4.450.0050.01614.46
5.4.440.0030.01814.40
5.4.430.0030.02614.40
5.4.420.0020.03414.43
5.4.410.0040.03214.37
5.4.400.0070.02814.26
5.4.390.0020.03314.24
5.4.380.0080.02714.28
5.4.370.0060.02214.17
5.4.360.0090.02014.26
5.4.350.0060.02814.26
5.4.340.0060.01714.25
5.4.330.0020.00711.95
5.4.320.0040.01814.23
5.4.310.0060.02414.33
5.4.300.0070.02514.30
5.4.290.0080.02914.24
5.4.280.0050.02114.21
5.4.270.0050.02814.18
5.4.260.0070.02514.25
5.4.250.0060.01814.24
5.4.240.0040.03014.22
5.4.230.0060.02414.29
5.4.220.0100.02914.27
5.4.210.0070.02914.21
5.4.200.0080.02114.29
5.4.190.0070.02814.19
5.4.180.0040.01814.25
5.4.170.0070.02614.32
5.4.160.0050.01814.27
5.4.150.0030.03414.26
5.4.140.0020.02913.36
5.4.130.0060.02813.39
5.4.120.0050.02013.42
5.4.110.0040.02013.40
5.4.100.0050.03113.34
5.4.90.0070.02813.35
5.4.80.0060.02313.40
5.4.70.0040.02413.38
5.4.60.0060.03113.42
5.4.50.0050.02713.33
5.4.40.0030.02913.41
5.4.30.0070.02513.40
5.4.20.0030.02913.37
5.4.10.0120.02213.40
5.4.00.0080.02413.12
5.3.290.0040.03312.95
5.3.280.0040.01912.89
5.3.270.0070.02712.90
5.3.260.0100.02912.95
5.3.250.0060.02612.93
5.3.240.0080.02312.92
5.3.230.0060.02012.88
5.3.220.0080.02812.86
5.3.210.0060.01712.85
5.3.200.0070.02912.84
5.3.190.0030.03112.93
5.3.180.0080.02913.00
5.3.170.0090.02612.96
5.3.160.0020.03012.89
5.3.150.0050.02512.93
5.3.140.0080.02812.90
5.3.130.0030.03212.98
5.3.120.0070.03012.90
5.3.110.0050.01912.90
5.3.100.0060.02712.79
5.3.90.0060.02712.75
5.3.80.0040.02112.66
5.3.70.0050.03012.68
5.3.60.0080.02712.80
5.3.50.0080.02812.65
5.3.40.0010.02012.75
5.3.30.0060.02412.70
5.3.20.0050.02312.63
5.3.10.0040.01912.55
5.3.00.0050.03112.55
5.2.170.0000.07011.25
5.2.160.0130.04311.08
5.2.150.0000.05311.29
5.2.140.0100.06011.05
5.2.130.0070.06011.23
5.2.120.0100.05710.97
5.2.110.0030.03711.04
5.2.100.0030.04311.20
5.2.90.0100.06011.25
5.2.80.0000.06711.13
5.2.70.0070.06011.17
5.2.60.0070.04710.96
5.2.50.0100.03311.09
5.2.40.0070.05011.05
5.2.30.0000.06710.87
5.2.20.0100.04011.05
5.2.10.0000.06010.87
5.2.00.0000.06310.78
5.1.60.0030.05310.00
5.1.50.0030.05310.08
5.1.40.0070.0539.97
5.1.30.0200.05310.35
5.1.20.0130.03710.48
5.1.10.0100.05010.08
5.1.00.0030.04710.06
5.0.50.0170.0338.44
5.0.40.0000.0508.41
5.0.30.0000.0608.27
5.0.20.0100.0378.29
5.0.10.0000.0438.23
5.0.00.0000.0378.07
4.4.90.0030.0177.95
4.4.80.0070.0137.95
4.4.70.0070.0207.95
4.4.60.0030.0177.95
4.4.50.0030.0237.95
4.4.40.0070.0537.95
4.4.30.0000.0377.95
4.4.20.0070.0177.95
4.4.10.0070.0277.95
4.4.00.0070.0507.95
4.3.110.0070.0277.95
4.3.100.0030.0337.95
4.3.90.0070.0307.95
4.3.80.0030.0477.95
4.3.70.0000.0377.95
4.3.60.0030.0337.95
4.3.50.0070.0337.95
4.3.40.0000.0407.95
4.3.30.0000.0377.95
4.3.20.0030.0277.95
4.3.10.0030.0277.95
4.3.00.0030.0337.95

preferences:
43.27 ms | 401 KiB | 5 Q