3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call(callable $foo) { echo call_user_func($foo); } class Foo { public function bar() { call(array($this, 'baz')); } public function baz() { return 'foo' ; } } (new Foo)->bar();

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.0070.01416.50
8.3.50.0110.00617.88
8.3.40.0040.01118.54
8.3.30.0100.00319.21
8.3.20.0040.00419.98
8.3.10.0000.00823.66
8.3.00.0070.00317.75
8.2.180.0110.00418.29
8.2.170.0140.00722.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.53
8.2.110.0110.00022.20
8.2.100.0080.00417.84
8.2.90.0000.00919.05
8.2.80.0030.00618.04
8.2.70.0030.00617.38
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0000.00718.07
8.2.20.0050.00217.61
8.2.10.0040.00417.60
8.2.00.0000.00717.48
8.1.270.0000.00823.97
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00624.01
8.1.230.0050.00519.15
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0110.00017.35
8.1.190.0050.00317.39
8.1.180.0060.00318.10
8.1.170.0030.00718.46
8.1.160.0000.01021.98
8.1.150.0000.00718.50
8.1.140.0040.00417.37
8.1.130.0000.00717.37
8.1.120.0070.00017.44
8.1.110.0030.00517.33
8.1.100.0000.00717.27
8.1.90.0070.00017.26
8.1.80.0030.00317.44
8.1.70.0030.00317.25
8.1.60.0040.00417.46
8.1.50.0060.00317.45
8.1.40.0040.00417.45
8.1.30.0040.00417.55
8.1.20.0070.00017.62
8.1.10.0040.00417.35
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0070.00018.46
8.0.270.0040.00417.16
8.0.260.0000.00616.81
8.0.250.0060.00016.99
8.0.240.0000.00717.02
8.0.230.0000.00716.95
8.0.220.0000.00716.83
8.0.210.0030.00316.94
8.0.200.0030.00317.00
8.0.190.0000.00717.02
8.0.180.0070.00016.89
8.0.170.0050.00316.90
8.0.160.0040.00416.89
8.0.150.0030.00316.85
8.0.140.0040.00416.92
8.0.130.0040.00413.34
8.0.120.0040.00416.80
8.0.110.0000.00716.93
8.0.100.0030.00616.92
8.0.90.0030.00316.81
8.0.80.0070.00716.99
8.0.70.0000.00716.79
8.0.60.0050.00316.73
8.0.50.0080.00016.94
8.0.30.0090.00917.14
8.0.20.0100.01017.40
8.0.10.0040.00416.80
8.0.00.0130.00916.83
7.4.330.0000.00515.08
7.4.320.0040.00416.60
7.4.300.0000.00616.48
7.4.290.0060.00316.48
7.4.280.0030.00316.58
7.4.270.0080.00016.58
7.4.260.0000.00716.40
7.4.250.0040.00416.37
7.4.240.0020.00516.54
7.4.230.0000.00716.34
7.4.220.0120.00616.53
7.4.210.0030.01116.46
7.4.200.0030.00316.66
7.4.190.0050.00216.63
7.4.160.0070.01116.46
7.4.150.0060.01217.40
7.4.140.0090.01017.86
7.4.130.0090.00816.46
7.4.120.0070.01116.36
7.4.110.0080.00816.49
7.4.100.0080.00816.65
7.4.90.0120.00616.71
7.4.80.0120.00919.39
7.4.70.0120.00416.43
7.4.60.0050.01116.41
7.4.50.0040.00416.32
7.4.40.0040.00822.77
7.4.30.0070.01116.62
7.4.00.0040.01314.97
7.3.330.0050.00013.22
7.3.320.0070.00013.16
7.3.310.0030.00316.24
7.3.300.0070.00016.25
7.3.290.0120.00716.30
7.3.280.0110.00516.31
7.3.270.0080.00817.40
7.3.260.0070.01316.30
7.3.250.0120.00516.40
7.3.240.0050.01116.33
7.3.230.0180.00716.39
7.3.210.0110.00616.43
7.3.200.0100.00619.39
7.3.190.0070.01616.40
7.3.180.0130.00316.54
7.3.170.0060.00916.49
7.3.160.0140.00316.53
7.3.120.0060.01214.66
7.3.110.0050.01214.68
7.3.100.0080.00714.82
7.3.90.0030.01014.63
7.3.80.0070.00814.85
7.3.70.0060.01014.60
7.3.60.0050.01014.73
7.3.50.0020.01214.71
7.3.40.0000.01414.70
7.3.30.0050.01014.96
7.3.20.0090.00316.40
7.3.10.0030.01216.48
7.3.00.0080.00416.63
7.2.330.0210.00416.48
7.2.320.0060.01016.63
7.2.310.0110.00716.78
7.2.300.0030.01616.69
7.2.290.0030.01316.68
7.2.250.0050.01215.19
7.2.240.0050.01415.16
7.2.230.0100.00715.00
7.2.220.0080.00814.73
7.2.210.0030.01315.09
7.2.200.0120.00715.13
7.2.190.0070.00714.88
7.2.180.0040.00814.98
7.2.170.0090.00515.04
7.2.130.0060.01016.67
7.2.120.0040.00716.97
7.2.110.0100.00316.86
7.2.100.0110.00316.80
7.2.90.0080.00416.98
7.2.80.0000.01616.65
7.2.70.0080.00617.08
7.2.60.0000.01216.82
7.2.50.0100.00316.73
7.2.40.0070.00716.91
7.2.30.0000.01416.89
7.2.20.0040.01416.85
7.2.10.0000.01116.87
7.2.00.0090.00616.66
7.1.330.0030.01115.67
7.1.320.0020.01115.65
7.1.310.0120.00615.86
7.1.300.0050.00715.62
7.1.290.0070.00715.70
7.1.280.0090.00315.83
7.1.270.0040.00915.79
7.1.260.0060.00615.49
7.1.250.0100.00315.76
7.1.70.0000.01017.10
7.1.60.0100.01419.31
7.1.50.0070.01416.79
7.1.00.0070.07322.40
7.0.200.0030.01016.33
7.0.140.0030.07321.95
7.0.60.0170.07319.88
7.0.50.0100.07017.87
7.0.40.0130.06320.30
7.0.30.0170.07320.16
7.0.20.0270.05320.28
7.0.10.0000.09020.16
7.0.00.0030.07720.20
5.6.280.0100.06721.16
5.6.210.0130.07020.71
5.6.200.0000.07318.17
5.6.190.0170.03720.77
5.6.180.0230.03720.48
5.6.170.0130.04320.64
5.6.160.0030.04720.71
5.6.150.0070.08718.16
5.6.140.0130.07018.18
5.6.130.0100.07718.18
5.6.120.0030.04020.98
5.6.110.0100.08021.09
5.6.100.0100.05021.01
5.6.90.0070.04721.11
5.6.80.0170.07020.41
5.6.70.4500.04020.50
5.5.350.0070.08720.41
5.5.340.0030.05718.04
5.5.330.0130.05020.46
5.5.320.0200.06720.27
5.5.310.0270.07720.42
5.5.300.0070.03317.98
5.5.290.0030.08317.97
5.5.280.0030.07020.80
5.5.270.0070.04020.80
5.5.260.0100.07720.80
5.5.250.0330.05020.66
5.5.240.0030.03720.19
5.4.450.0900.03719.49
5.4.440.0600.05719.41
5.4.430.0100.05719.52
5.4.420.0630.05719.28
5.4.410.0670.05019.42
5.4.400.0730.05319.11
5.4.390.0730.05719.11
5.4.380.0300.05018.77
5.4.370.0300.05718.59
5.4.360.0300.05718.53
5.4.350.0270.06018.53
5.4.340.0470.07018.74
5.4.320.0070.03412.50
5.4.310.0090.03512.50
5.4.300.0040.04012.50
5.4.290.0040.04112.50
5.4.280.0050.03612.40
5.4.270.0060.04312.39
5.4.260.0090.03412.39
5.4.250.0050.04012.39
5.4.240.0060.03512.40
5.4.230.0050.05512.39
5.4.220.0060.03612.39
5.4.210.0110.03512.39
5.4.200.0100.03612.39
5.4.190.0110.05112.38
5.4.180.0190.04612.38
5.4.170.0430.08012.39
5.4.160.0180.04312.39
5.4.150.0170.04712.39
5.4.140.0170.04412.07
5.4.130.0150.04512.05
5.4.120.0150.04312.01
5.4.110.0170.04112.01
5.4.100.0150.04412.01
5.4.90.0190.04012.01
5.4.80.0180.04012.01
5.4.70.0150.04212.00
5.4.60.0140.04412.01
5.4.50.0280.06312.00
5.4.40.0130.04611.99
5.4.30.0170.04611.99
5.4.20.0180.04411.98
5.4.10.0200.04111.98
5.4.00.0320.05611.47
5.3.290.0080.03812.80
5.3.280.0100.03612.71
5.3.270.0190.04312.72
5.3.260.0190.04312.72
5.3.250.0160.04512.71
5.3.240.0180.04412.72
5.3.230.0190.04512.71
5.3.220.0240.06812.68
5.3.210.0190.04612.68
5.3.200.0290.06512.68
5.3.190.0170.04612.68
5.3.180.0150.04812.68
5.3.170.0140.05012.66
5.3.160.0230.04112.67
5.3.150.0180.04412.68
5.3.140.0200.04212.66
5.3.130.0150.04912.66
5.3.120.0340.08912.65
5.3.110.0200.04312.66
5.3.100.0260.03612.12
5.3.90.0190.04012.11
5.3.80.0170.04312.09
5.3.70.0170.04512.09
5.3.60.0120.04912.07
5.3.50.0250.06912.02
5.3.40.0150.04512.03
5.3.30.0100.04812.00
5.3.20.0140.04411.78
5.3.10.0140.04311.73
5.3.00.0300.06011.71
5.2.170.0160.0349.22
5.2.160.0150.0339.22
5.2.150.0130.0379.21
5.2.140.0160.0339.21
5.2.130.0130.0399.18
5.2.120.0110.0389.18
5.2.110.0110.0379.19
5.2.100.0160.0309.18
5.2.90.0130.0339.19
5.2.80.0140.0339.18
5.2.70.0140.0339.18
5.2.60.0150.0329.13
5.2.50.0100.0379.09
5.2.40.0270.0809.07
5.2.30.0130.0339.05
5.2.20.0130.0339.04
5.2.10.0120.0338.94
5.2.00.0130.0338.80
5.1.60.0110.0288.08
5.1.50.0130.0278.08
5.1.40.0100.0298.07
5.1.30.0150.0588.41
5.1.20.0090.0338.45
5.1.10.0100.0328.16
5.1.00.0090.0338.16
5.0.50.0070.0276.65
5.0.40.0100.0216.50
5.0.30.0070.0376.32
5.0.20.0090.0256.29
5.0.10.0100.0226.25
5.0.00.0110.0376.25
4.4.90.0080.0184.78
4.4.80.0070.0194.75
4.4.70.0070.0204.76
4.4.60.0130.0144.76
4.4.50.0080.0194.77
4.4.40.0080.0314.71
4.4.30.0100.0164.76
4.4.20.0070.0194.84
4.4.10.0060.0214.85
4.4.00.0110.0274.76
4.3.110.0090.0164.67
4.3.100.0060.0194.66
4.3.90.0080.0174.64
4.3.80.0060.0304.58
4.3.70.0090.0184.63
4.3.60.0060.0184.63
4.3.50.0040.0204.63
4.3.40.0070.0264.54
4.3.30.0050.0183.30
4.3.20.0060.0163.29
4.3.10.0010.0233.24
4.3.00.0270.01315.63

preferences:
57.75 ms | 400 KiB | 5 Q