3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public static function Bar(&$v){ $v = 9000; } } $functionname = "Foo::Bar"; $num = 3; if (stristr('::', $functionname) !== false) { list($class, $function) = explode('::', $functionname); $class::$function($num); } else { $functionname($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.60.0180.00318.29
8.3.50.0050.01321.08
8.3.40.0040.01118.68
8.3.30.0150.00018.84
8.3.20.0000.00818.59
8.3.10.0030.00520.58
8.3.00.0030.00523.61
8.2.180.0030.01416.48
8.2.170.0060.00922.96
8.2.160.0110.00420.39
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00326.16
8.2.120.0040.00419.62
8.2.110.0090.00022.13
8.2.100.0070.00717.78
8.2.90.0000.00919.18
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0020.00519.91
8.2.20.0040.00417.59
8.2.10.0080.00017.73
8.2.00.0040.00417.71
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00322.48
8.1.230.0000.01120.96
8.1.220.0000.00818.77
8.1.210.0030.00518.97
8.1.200.0080.00017.23
8.1.190.0020.00517.40
8.1.180.0080.00018.10
8.1.170.0100.00018.84
8.1.160.0070.00018.89
8.1.150.0060.00318.63
8.1.140.0070.00017.44
8.1.130.0000.00717.83
8.1.120.0000.00717.37
8.1.110.0070.00017.30
8.1.100.0040.00317.39
8.1.90.0040.00417.40
8.1.80.0020.00517.31
8.1.70.0000.00717.30
8.1.60.0000.00717.63
8.1.50.0040.00417.45
8.1.40.0080.00017.56
8.1.30.0000.00817.65
8.1.20.0040.00717.64
8.1.10.0040.00417.63
8.1.00.0000.00717.55
8.0.300.0040.00419.90
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0040.00417.32
8.0.260.0000.00816.84
8.0.250.0080.00017.02
8.0.240.0080.00416.95
8.0.230.0000.00716.82
8.0.220.0030.00316.88
8.0.210.0000.00716.87
8.0.200.0100.00016.89
8.0.190.0040.00416.79
8.0.180.0050.00316.74
8.0.170.0090.00016.81
8.0.160.0030.00716.86
8.0.150.0020.00516.71
8.0.140.0100.00016.72
8.0.130.0070.00013.19
8.0.120.0000.00716.79
8.0.110.0040.00416.72
8.0.100.0000.00716.85
8.0.90.0000.00816.73
8.0.80.0120.00316.76
8.0.70.0000.00716.86
8.0.60.0040.00416.85
8.0.50.0000.00716.70
8.0.30.0050.01316.91
8.0.20.0080.01317.40
8.0.10.0000.00816.89
8.0.00.0120.00516.83
7.4.330.0000.00514.73
7.4.320.0040.00416.66
7.4.300.0040.00416.59
7.4.290.0040.00416.50
7.4.280.0000.00916.38
7.4.270.0040.00416.66
7.4.260.0060.00013.30
7.4.250.0040.00416.58
7.4.240.0080.00016.46
7.4.230.0000.00716.55
7.4.220.0160.01216.48
7.4.210.0090.00616.53
7.4.200.0070.00016.60
7.4.190.0030.00316.77
7.4.160.0120.00816.33
7.4.150.0070.01017.40
7.4.140.0030.01417.86
7.4.130.0100.00716.55
7.4.120.0110.00816.45
7.4.110.0100.00616.58
7.4.100.0070.01016.52
7.4.90.0110.00616.62
7.4.80.0060.01319.04
7.4.70.0090.00916.52
7.4.60.0060.01016.50
7.4.50.0030.00316.51
7.4.40.0070.01022.27
7.4.30.0070.01016.61
7.4.00.0040.01114.78
7.3.330.0000.00513.24
7.3.320.0030.00313.25
7.3.310.0020.00516.29
7.3.300.0050.00216.26
7.3.290.0110.00316.20
7.3.280.0100.00816.28
7.3.270.0070.01017.40
7.3.260.0090.01118.24
7.3.250.0080.00916.38
7.3.240.0060.01016.30
7.3.230.0070.01016.54
7.3.210.0080.00816.57
7.3.200.0030.01219.39
7.3.190.0130.01016.28
7.3.180.0030.01316.45
7.3.170.0130.00316.31
7.3.160.0060.00916.23
7.3.120.0030.01015.02
7.2.330.0190.00016.61
7.2.320.0100.00716.73
7.2.310.0150.00316.54
7.2.300.0120.01316.69
7.2.290.0030.01716.34
7.2.60.0030.01316.41
7.2.00.0060.01219.61
7.1.200.0000.01515.44
7.1.100.0000.01118.14
7.1.70.0030.00717.29
7.1.60.0060.01219.40
7.1.50.0000.01717.09
7.1.00.0030.07022.33
7.0.200.0040.00416.94
7.0.140.0070.07021.98
7.0.60.0070.08319.90
7.0.50.0070.04717.86
7.0.40.0230.07720.40
7.0.30.0500.04720.09
7.0.20.0200.04320.23
7.0.10.0170.04320.26
7.0.00.0130.07020.06
5.6.280.0000.07720.91
5.6.210.0100.07720.61
5.6.200.0030.08318.21
5.6.190.0070.08720.60
5.6.180.0270.04020.48
5.6.170.0270.04020.50
5.6.160.0070.08020.52
5.6.150.0100.03718.26
5.6.140.0170.07018.24
5.6.130.0130.05318.15
5.6.120.0130.07021.15
5.6.110.0030.09021.14
5.6.100.0030.08720.98
5.6.90.0030.04021.00
5.6.80.0070.07320.38
5.6.70.0170.04020.39
5.5.350.3900.04020.45
5.5.340.0170.07017.98
5.5.330.0070.05720.42
5.5.320.0030.05320.26
5.5.310.0200.07020.34
5.5.300.0100.07718.02
5.5.290.0070.04018.08
5.5.280.0130.08020.96
5.5.270.0100.05720.77
5.5.260.0030.08320.88
5.5.250.0170.07720.55
5.5.240.0100.07020.36
5.4.450.2030.04719.45
5.4.440.0030.04019.59
5.4.430.0470.05719.54
5.4.420.3000.03719.36
5.4.410.3270.03719.43
5.4.400.3600.04019.23
5.4.390.3870.03719.16
5.4.380.4600.04319.17
5.4.370.4830.03319.13
5.4.360.4570.03319.19
5.4.350.3970.04319.20
5.4.340.4070.03719.04
5.4.320.4270.04019.06
5.4.310.5000.04019.13
5.4.300.3430.02719.21
5.4.290.4300.03319.04
5.4.280.4030.03319.10
5.4.270.4200.03719.14
5.4.260.3100.04019.14
5.4.250.4070.03319.21
5.4.240.4200.03019.06
5.4.230.4600.03319.16
5.4.220.4930.03718.92
5.4.210.4800.03719.13
5.4.200.3900.03719.22
5.4.190.3870.03718.97
5.4.180.4730.04019.09
5.4.170.4670.04019.05
5.4.160.3700.04319.13
5.4.150.3470.05019.08
5.4.140.0100.05316.33
5.4.130.0000.05316.49
5.4.120.3330.04016.51
5.4.110.4430.03316.45
5.4.100.4870.03716.26
5.4.90.4330.03316.30
5.4.80.4200.03716.54
5.4.70.4030.03016.34
5.4.60.4830.03316.61
5.4.50.3930.04016.50
5.4.40.0070.03316.29
5.4.30.0100.04016.45
5.4.20.4430.03316.19
5.4.10.4430.04016.42
5.4.00.4870.03315.68
5.3.290.4400.03714.70
5.3.280.4630.03714.60
5.3.270.4400.04014.62
5.3.260.4330.04014.63
5.3.250.3230.04014.66
5.3.240.0230.04014.64
5.3.230.0030.07714.64
5.3.220.4670.03314.72
5.3.210.4570.04014.57
5.3.200.4170.04014.64
5.3.190.4800.03714.71
5.3.180.4770.03314.63
5.3.170.4800.04714.56
5.3.160.4730.03014.55
5.3.150.4570.04014.57
5.3.140.4770.04014.62
5.3.130.0070.07314.55
5.3.120.1870.06314.59
5.3.110.4530.03714.43
5.3.100.4570.04014.04
5.3.90.4230.02714.03
5.3.80.3930.03014.01
5.3.70.3500.04014.17
5.3.60.3730.03314.05
5.3.50.3400.04013.87
5.3.40.2100.03713.95
5.3.30.1700.03314.06
5.3.20.2270.03713.64
5.3.10.3300.03013.81
5.3.00.3400.03713.59
5.2.170.3230.03311.20
5.2.160.2570.03011.16
5.2.150.1470.03311.10
5.2.140.1500.02711.14
5.2.130.1930.02311.26
5.2.120.1370.03311.10
5.2.110.2400.02711.09
5.2.100.2930.02711.12
5.2.90.3970.03311.06
5.2.80.3630.03311.10
5.2.70.3000.02311.09
5.2.60.2330.02311.11
5.2.50.2770.02711.02
5.2.40.1730.02710.92
5.2.30.1930.02710.93
5.2.20.2500.03310.92
5.2.10.1230.03711.02
5.2.00.2670.02710.75
5.1.60.2500.0179.95
5.1.50.2700.02710.05
5.1.40.2370.02710.02
5.1.30.3000.02310.49
5.1.20.2070.02010.36
5.1.10.3300.02710.03
5.1.00.2770.0209.98
5.0.50.1330.0208.71
5.0.40.1630.0208.37
5.0.30.1570.0308.30
5.0.20.1800.0208.16
5.0.10.1570.0238.24
5.0.00.1600.0338.18
4.4.90.0630.0175.89
4.4.80.0800.0135.89
4.4.70.1000.0175.82
4.4.60.0770.0175.80
4.4.50.1300.0105.90
4.4.40.1500.0235.81
4.4.30.1570.0175.93
4.4.20.0930.0075.82
4.4.10.1570.0135.93
4.4.00.1100.0335.92
4.3.110.1070.0175.70
4.3.100.1270.0105.75
4.3.90.1770.0135.73
4.3.80.1870.0205.71
4.3.70.1500.0135.75
4.3.60.1700.0205.74
4.3.50.1530.0175.76
4.3.40.1530.0205.74
4.3.30.1030.0175.23
4.3.20.0770.0175.23
4.3.10.1030.0205.23
4.3.00.1000.0175.23

preferences:
40.19 ms | 401 KiB | 5 Q