3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public static function Bar($num){ $num*=50; } } function sillyboy(){ echo 'sillyboy'; } function inc(&$p1){ $p1++; } $f = 'Foo::Bar'; $f2 = 'sillyboy'; if (is_callable($f)){ call_user_func($f); } if (is_callable($f2)){ call_user_func($f2); } $num = 3; call_user_func_array('Foo::Bar', array(&$num)); echo $num;

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.40.0040.01119.02
8.3.30.0040.01119.02
8.3.20.0080.00020.20
8.3.10.0080.00023.56
8.3.00.0040.00420.77
8.2.170.0100.01022.96
8.2.160.0070.01020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00326.16
8.2.120.0040.00420.73
8.2.110.0070.00322.19
8.2.100.0040.00717.78
8.2.90.0000.00917.78
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0040.00419.82
8.2.30.0040.00418.19
8.2.20.0000.00817.69
8.2.10.0040.00418.09
8.2.00.0040.00417.71
8.1.270.0040.00422.06
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00322.39
8.1.230.0040.00820.97
8.1.220.0000.00817.74
8.1.210.0000.00818.91
8.1.200.0040.00417.35
8.1.190.0060.00317.23
8.1.180.0050.00518.10
8.1.170.0030.00618.59
8.1.160.0040.00421.89
8.1.150.0000.00718.61
8.1.140.0000.00717.33
8.1.130.0000.00717.82
8.1.120.0040.00417.31
8.1.110.0040.00417.29
8.1.100.0080.00017.42
8.1.90.0040.00417.29
8.1.80.0040.00417.26
8.1.70.0000.00717.30
8.1.60.0040.00417.61
8.1.50.0000.00817.49
8.1.40.0040.00417.40
8.1.30.0040.00417.68
8.1.20.0040.00417.66
8.1.10.0000.00717.62
8.1.00.0000.00817.46
8.0.300.0060.00319.90
8.0.290.0050.00216.63
8.0.280.0030.00318.39
8.0.270.0040.00417.15
8.0.260.0030.00317.24
8.0.250.0060.00017.02
8.0.240.0070.00017.00
8.0.230.0080.00016.91
8.0.220.0030.00316.85
8.0.210.0030.00316.78
8.0.200.0050.00216.94
8.0.190.0040.00416.85
8.0.180.0060.00616.90
8.0.170.0030.00516.95
8.0.160.0080.00016.95
8.0.150.0070.00016.84
8.0.140.0040.00416.82
8.0.130.0000.00613.25
8.0.120.0000.00816.86
8.0.110.0000.00716.87
8.0.100.0000.00717.00
8.0.90.0040.00416.89
8.0.80.0110.00316.88
8.0.70.0040.00417.01
8.0.60.0000.00716.77
8.0.50.0070.00016.77
8.0.30.0110.00816.98
8.0.20.0090.00917.40
8.0.10.0050.00316.80
8.0.00.0100.00816.89
7.4.330.0000.00515.08
7.4.320.0000.00716.38
7.4.300.0030.00316.61
7.4.290.0040.00416.52
7.4.280.0000.00716.60
7.4.270.0000.00716.66
7.4.260.0030.00316.47
7.4.250.0040.00416.46
7.4.240.0040.00416.51
7.4.230.0000.00716.70
7.4.220.0100.01016.65
7.4.210.0060.01316.66
7.4.200.0070.00016.69
7.4.160.0120.00316.37
7.4.150.0110.00617.40
7.4.140.0090.00917.86
7.4.130.0080.01316.44
7.4.120.0100.00816.57
7.4.110.0130.00316.50
7.4.100.0160.00316.51
7.4.90.0110.00716.41
7.4.80.0150.00619.39
7.4.70.0060.01216.54
7.4.60.0130.00616.36
7.4.50.0040.00416.31
7.4.40.0100.00616.46
7.4.30.0080.00816.79
7.4.00.0060.01215.23
7.3.330.0030.00313.15
7.3.320.0060.00013.18
7.3.310.0040.00416.40
7.3.300.0000.00716.32
7.3.290.0110.00416.34
7.3.280.0100.00716.35
7.3.270.0090.00917.40
7.3.260.0130.00416.39
7.3.250.0080.01116.52
7.3.240.0120.00916.42
7.3.230.0120.00916.59
7.3.210.0070.01116.49
7.3.200.0070.01019.39
7.3.190.0100.00716.42
7.3.180.0130.00316.22
7.3.170.0090.00616.42
7.3.160.0120.00416.37
7.3.120.0070.00715.05
7.2.330.0110.00516.29
7.2.320.0100.00716.65
7.2.310.0060.01216.42
7.2.300.0060.01116.54
7.2.290.0180.00616.25
7.2.60.0040.01116.78
7.2.00.0060.00619.22
7.1.200.0130.01015.36
7.1.100.0060.00318.33
7.1.70.0000.00717.31
7.1.60.0070.01619.70
7.1.50.0140.01016.87
7.1.00.0000.08022.45
7.0.200.0060.00316.84
7.0.140.0000.07021.99
7.0.70.0070.08321.65
7.0.60.0030.08021.77
7.0.50.0170.03722.18
7.0.40.0100.07720.18
7.0.30.0100.08320.08
7.0.20.0030.06020.10
7.0.10.0000.05319.94
7.0.00.0030.08720.18
5.6.280.0070.07020.86
5.6.220.0130.07020.68
5.6.210.0100.07720.56
5.6.200.0100.08021.09
5.6.190.0030.08321.07
5.6.180.0130.07020.96
5.6.170.0070.08021.12
5.6.160.0030.07721.04
5.6.150.0230.07020.95
5.6.140.0030.08021.08
5.6.130.0030.08721.08
5.6.120.0030.08721.05
5.6.110.0070.07721.11
5.6.100.0130.06320.91
5.6.90.0070.05020.93
5.6.80.0100.05020.48
5.6.70.0030.08020.55
5.6.60.0070.04720.49
5.6.50.0030.08020.43
5.6.40.0100.08020.40
5.6.30.0030.08720.37
5.6.20.0030.06720.40
5.6.10.0030.05720.38
5.6.00.0070.08020.36
5.5.360.0030.07320.35
5.5.350.0030.04720.42
5.5.340.0070.08020.85
5.5.330.0070.08020.93
5.5.320.0070.08320.78
5.5.310.0070.07020.92
5.5.300.0030.08720.81
5.5.290.0070.05020.83
5.5.280.0100.08020.80
5.5.270.0070.08020.72
5.5.260.0030.08720.84
5.5.250.0030.06320.65
5.5.240.0100.07320.25
5.5.230.0130.06720.29
5.5.220.0000.08020.19
5.5.210.0030.07720.31
5.5.200.0030.08020.24
5.5.190.0070.06720.20
5.5.180.0030.07720.22
5.5.160.0030.08020.16
5.5.150.0030.08020.18
5.5.140.0000.07720.16
5.5.130.0030.05020.22
5.5.120.0100.06720.26
5.5.110.0000.08320.09
5.5.100.0030.08720.07
5.5.90.0000.08020.05
5.5.80.0070.07320.08
5.5.70.0000.08320.05
5.5.60.0070.07720.05
5.5.50.0000.08019.93
5.5.40.0030.08020.04
5.5.30.0100.06720.11
5.5.20.0100.03320.08
5.5.10.0070.05020.04
5.5.00.0100.07720.02
5.4.450.0030.04019.47
5.4.440.0030.08719.51
5.4.430.0070.07719.17
5.4.420.0070.07319.20
5.4.410.0030.04719.40
5.4.400.0070.05719.24
5.4.390.0130.07019.17
5.4.380.0170.06019.15
5.4.370.0030.04719.12
5.4.360.0030.06319.21
5.4.350.0030.07719.05
5.4.340.0000.08319.24
5.4.320.0030.05319.09
5.4.310.0030.06719.25
5.4.300.0000.06719.09
5.4.290.0070.03319.18
5.4.280.0100.07719.18
5.4.270.0030.07019.11
5.4.260.0070.05319.18
5.4.250.0100.04718.94
5.4.240.0030.07718.86
5.4.230.0000.07319.20
5.4.220.0100.06319.11
5.4.210.0070.06719.11
5.4.200.0030.08019.18
5.4.190.0100.07018.93
5.4.180.0070.06719.11
5.4.170.0070.08019.11
5.4.160.0070.07318.95
5.4.150.0030.05019.11
5.4.140.0070.04016.24
5.4.130.0070.07016.46
5.4.120.0000.03716.24
5.4.110.0000.07716.49
5.4.100.0070.06716.45
5.4.90.0030.07716.42
5.4.80.0000.04316.54
5.4.70.0030.07716.54
5.4.60.0070.07016.32
5.4.50.0100.07016.46
5.4.40.0000.08016.47
5.4.30.0000.07716.36
5.4.20.0030.07716.44
5.4.10.0070.08016.25
5.4.00.0130.06315.90
5.3.290.0030.04314.73
5.3.280.0070.06014.60
5.3.270.0000.07314.53
5.3.260.0000.08014.68
5.3.250.0030.05714.53
5.3.240.0070.07314.62
5.3.230.0070.04714.57
5.3.220.0000.04714.60
5.3.210.0000.08014.53
5.3.200.0070.07014.70
5.3.190.0000.05714.66
5.3.180.0100.06714.48
5.3.170.0000.03714.51
5.3.160.0070.07314.48
5.3.150.0070.07314.68
5.3.140.0030.07314.51
5.3.130.0070.08014.53
5.3.120.0030.06014.52
5.3.110.0070.05014.54
5.3.100.0030.07314.16
5.3.90.0070.05714.04
5.3.80.0030.06313.95
5.3.70.0070.07014.13
5.3.60.0000.04013.93
5.3.50.0000.03713.86
5.3.40.0030.03313.89
5.3.30.0000.07714.00
5.3.20.0030.04713.82
5.3.10.0030.03013.70
5.3.00.0070.03013.70
5.2.170.0000.03312.18
5.2.160.0030.02712.18
5.2.150.0000.03312.18
5.2.140.0030.02712.18
5.2.130.0030.02712.18
5.2.120.0000.03312.18
5.2.110.0030.02712.18
5.2.100.0000.03012.18
5.2.90.0030.02712.18
5.2.80.0000.03712.18
5.2.70.0070.02312.18
5.2.60.0070.02312.18
5.2.50.0030.02712.18
5.2.40.0030.03012.18
5.2.30.0030.02712.18
5.2.20.0000.03012.18
5.2.10.0030.02712.18
5.2.00.0070.05012.18
5.1.60.0030.03312.18
5.1.50.0000.02712.18
5.1.40.0070.02012.18
5.1.30.0030.02312.18
5.1.20.0000.02712.18
5.1.10.0000.02712.18
5.1.00.0030.02312.18
5.0.50.0000.03312.18
5.0.40.0100.02012.18
5.0.30.0000.03312.18
5.0.20.0030.03012.18
5.0.10.0000.02012.18
5.0.00.0000.03012.18
4.4.90.0000.01712.18
4.4.80.0000.01312.18
4.4.70.0000.01312.18
4.4.60.0000.01312.18
4.4.50.0000.01712.18
4.4.40.0000.02312.18
4.4.30.0000.01712.18
4.4.20.0000.01712.18
4.4.10.0000.01712.18
4.4.00.0000.04012.18
4.3.110.0000.01712.18
4.3.100.0000.01712.18
4.3.90.0000.01312.18
4.3.80.0000.02712.18
4.3.70.0000.01312.18
4.3.60.0000.01312.18
4.3.50.0000.01712.18
4.3.40.0030.02012.18
4.3.30.0000.01712.18
4.3.20.0000.02012.18
4.3.10.0000.02012.18
4.3.00.0000.01712.18

preferences:
39.58 ms | 400 KiB | 5 Q