3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call(callable $foo) { echo $foo(); } class Foo { public function bar() { call([$this, 'baz']); } private function baz() { return 'foo'; } } $obj = new Foo; $obj->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.0120.00916.50
8.3.50.0100.01018.15
8.3.40.0130.00918.78
8.3.30.0070.00718.60
8.3.20.0070.00718.91
8.3.10.0060.00318.52
8.3.00.0060.00919.20
8.2.180.0000.01516.63
8.2.170.0140.00322.96
8.2.160.0110.00418.96
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.01020.88
8.2.110.0050.00521.07
8.2.100.0060.00717.84
8.2.90.0040.00419.25
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0050.00317.93
8.2.50.0080.00017.92
8.2.40.0000.00919.95
8.2.30.0030.00617.66
8.2.20.0050.00317.67
8.2.10.0060.00317.65
8.2.00.0000.01017.80
8.1.280.0150.00025.92
8.1.270.0100.00323.99
8.1.260.0100.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00919.13
8.1.230.0000.01017.77
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0030.00517.62
8.1.160.0040.00419.07
8.1.150.0050.00218.60
8.1.140.0070.00017.41
8.1.130.0080.00017.35
8.1.120.0030.00517.45
8.1.110.0000.01017.45
8.1.100.0050.00317.45
8.1.90.0040.00317.33
8.1.80.0050.00217.35
8.1.70.0030.00317.34
8.1.60.0000.00817.53
8.1.50.0000.00817.37
8.1.40.0000.00817.48
8.1.30.0000.00817.68
8.1.20.0040.00717.63
8.1.10.0000.00717.46
8.1.00.0000.00717.34
8.0.300.0030.00618.77
8.0.290.0070.00016.63
8.0.280.0000.00718.63
8.0.270.0000.00717.15
8.0.260.0000.00716.88
8.0.250.0000.00817.00
8.0.240.0040.00416.93
8.0.230.0070.00017.03
8.0.220.0050.00216.98
8.0.210.0050.00316.84
8.0.200.0080.00016.90
8.0.190.0090.00016.98
8.0.180.0100.00017.00
8.0.170.0000.00916.90
8.0.160.0050.00216.93
8.0.150.0000.00816.91
8.0.140.0030.00716.86
8.0.130.0060.00013.38
8.0.120.0040.00716.92
8.0.110.0040.00416.84
8.0.100.0040.00416.91
8.0.90.0080.00016.75
8.0.80.0110.01117.01
8.0.70.0000.00716.81
8.0.60.0000.00816.83
8.0.50.0070.00016.91
8.0.30.0090.00916.88
8.0.20.0110.00917.02
8.0.10.0050.00316.95
8.0.00.0040.01216.74
7.4.330.0030.00312.97
7.4.320.0000.00616.64
7.4.300.0030.00316.62
7.4.290.0000.00716.61
7.4.280.0070.00016.58
7.4.270.0000.00716.48
7.4.260.0000.00613.25
7.4.250.0040.00416.49
7.4.240.0030.00316.45
7.4.230.0030.00316.50
7.4.220.0090.00916.59
7.4.210.0150.00416.64
7.4.200.0000.00816.59
7.4.190.0040.00416.68
7.4.160.0070.01016.54
7.4.150.0080.00816.37
7.4.140.0200.00316.50
7.4.130.0100.00716.52
7.4.120.0100.00716.48
7.4.110.0110.00616.61
7.4.100.0100.00716.52
7.4.90.0090.00916.61
7.4.80.0100.00719.39
7.4.70.0130.00716.53
7.4.60.0140.00316.70
7.4.50.0060.00316.58
7.4.40.0040.01116.62
7.4.30.0080.00816.49
7.4.00.0100.00615.20
7.3.330.0030.00313.23
7.3.320.0000.00713.22
7.3.310.0000.00716.47
7.3.300.0030.00316.23
7.3.290.0060.00716.31
7.3.280.0080.00916.30
7.3.270.0040.01316.38
7.3.260.0040.01316.36
7.3.250.0140.00416.37
7.3.240.0100.00616.58
7.3.230.0070.01416.38
7.3.210.0030.01316.34
7.3.200.0130.00316.61
7.3.190.0070.01416.20
7.3.180.0060.01216.51
7.3.170.0030.01316.33
7.3.160.0050.01516.45
7.3.120.0120.00314.69
7.2.330.0070.01016.79
7.2.320.0080.01116.46
7.2.310.0160.00716.75
7.2.300.0040.01416.73
7.2.290.0100.01316.81
7.2.60.0070.01016.82
7.2.00.0000.01219.32
7.1.200.0040.00715.88
7.1.100.0000.01117.94
7.1.70.0030.00916.86
7.1.60.0110.01519.30
7.1.50.0110.01116.70
7.1.00.0000.08022.33
7.0.200.0000.00716.50
7.0.140.0000.07321.96
7.0.120.0070.06722.09
7.0.60.0100.07321.63
7.0.50.0000.04317.86
7.0.40.3230.03720.02
7.0.30.3170.04020.10
7.0.20.3500.04320.20
7.0.10.3370.04720.17
7.0.00.3170.04320.17
5.6.280.0030.07320.81
5.6.210.0100.07720.77
5.6.200.0070.08318.18
5.6.190.3170.04020.71
5.6.180.3100.04320.55
5.6.170.3770.04720.46
5.6.160.3500.04320.46
5.6.150.3070.04720.33
5.6.140.3630.03720.28
5.6.130.3630.04020.53
5.6.120.1570.05720.31
5.6.110.0070.07320.36
5.6.100.3830.03720.30
5.6.90.3900.04020.25
5.6.80.4130.04019.72
5.6.70.3470.04019.71
5.6.60.3930.03719.77
5.6.50.2670.04319.74
5.6.40.3300.03319.57
5.6.30.3170.04719.66
5.6.20.0100.03719.71
5.6.10.2400.04019.65
5.6.00.2170.04319.65
5.5.350.0230.03720.40
5.5.340.0030.04318.09
5.5.330.1100.04720.32
5.5.320.3070.04320.30
5.5.310.4170.04320.31
5.5.300.3500.03320.11
5.5.290.3430.03720.09
5.5.280.0070.05720.11
5.5.270.0100.07720.14
5.5.260.3870.04320.14
5.5.250.4130.04019.96
5.5.240.3800.04019.40
5.5.230.4070.04019.58
5.5.220.4100.04019.48
5.5.210.3270.04319.72
5.5.200.3200.03719.46
5.5.190.2400.03319.43
5.5.180.0000.04019.46
5.5.160.2300.04019.52
5.5.150.2370.04319.42
5.5.140.2500.04319.45
5.5.130.2730.04019.36
5.5.120.2630.04319.41
5.5.110.3270.03719.45
5.5.100.3000.04319.36
5.5.90.2800.04019.40
5.5.80.3200.04019.36
5.5.70.3170.04319.41
5.5.60.3170.04719.41
5.5.50.0130.06019.36
5.5.40.4070.04319.43
5.5.30.3730.04319.58
5.5.20.4170.04019.37
5.5.10.3900.04319.40
5.5.00.3330.03719.31
5.4.450.3430.03319.39
5.4.440.0100.07719.45
5.4.430.1530.06319.36
5.4.420.3700.04019.34
5.4.410.4230.03319.32
5.4.400.3900.04019.04
5.4.390.2900.03719.10
5.4.380.3770.03719.05
5.4.370.3770.04019.14
5.4.360.3200.03719.10
5.4.350.3130.04019.14
5.4.340.0070.03718.96
5.4.320.2370.04019.09
5.4.310.2130.04019.10
5.4.300.2600.03019.02
5.4.290.2700.04019.13
5.4.280.2970.03718.98
5.4.270.2730.03019.02
5.4.260.3230.04019.07
5.4.250.3170.04319.09
5.4.240.3230.03719.09
5.4.230.3070.04318.95
5.4.220.1070.04319.03
5.4.210.0070.07319.02
5.4.200.0500.07019.09
5.4.190.4070.04019.11
5.4.180.3530.03318.88
5.4.170.3630.04019.01
5.4.160.3370.03319.14
5.4.150.3300.04019.12
5.4.140.3630.03716.45
5.4.130.3200.03016.45
5.4.120.3530.02716.48
5.4.110.3970.03316.49
5.4.100.3370.03716.44
5.4.90.3470.04016.52
5.4.80.3730.03316.49
5.4.70.3570.03016.53
5.4.60.3230.02716.38
5.4.50.4270.03316.32
5.4.40.3770.03316.38
5.4.30.3500.03716.27
5.4.20.3400.03716.55
5.4.10.3430.03716.42
5.4.00.3770.03315.98
5.3.290.2470.03714.71
5.3.280.3200.03714.81
5.3.270.3300.03314.57
5.3.260.3230.03714.59
5.3.250.3430.03714.58
5.3.240.3200.03314.63
5.3.230.3530.03014.56
5.3.220.3300.04014.57
5.3.210.4030.03314.63
5.3.200.3370.04014.61
5.3.190.3370.04314.54
5.3.180.3400.04014.63
5.3.170.3100.04314.61
5.3.160.3100.04014.53
5.3.150.3270.03714.53
5.3.140.3370.03714.60
5.3.130.3330.04014.62
5.3.120.3230.04314.58
5.3.110.3500.03314.59
5.3.100.3430.04014.07
5.3.90.3570.03013.98
5.3.80.3070.04314.04
5.3.70.3430.03713.91
5.3.60.3270.03314.05
5.3.50.3170.03313.96
5.3.40.3470.03314.00
5.3.30.3300.03314.01
5.3.20.3300.03013.68
5.3.10.3230.03313.72
5.3.00.3800.03013.73
5.2.170.2630.02711.20
5.2.160.2870.03011.20
5.2.150.2900.02311.36
5.2.140.2830.03311.13
5.2.130.2930.03011.07
5.2.120.2930.02711.12
5.2.110.3430.02011.17
5.2.100.3430.03311.15
5.2.90.3570.02311.13
5.2.80.3600.02311.14
5.2.70.3300.03010.99
5.2.60.3600.03011.11
5.2.50.3370.03011.05
5.2.40.2470.02311.00
5.2.30.2500.03011.01
5.2.20.2400.03310.96
5.2.10.2700.03310.91
5.2.00.2570.02310.71
5.1.60.2400.01710.04
5.1.50.2070.0309.91
5.1.40.2930.02710.01
5.1.30.2470.03010.40
5.1.20.2530.02710.45
5.1.10.2100.03010.11
5.1.00.2430.03010.06
5.0.50.1600.0178.62
5.0.40.1070.0178.35
5.0.30.1330.0278.30
5.0.20.1330.0208.41
5.0.10.1330.0238.24
5.0.00.1470.0308.16
4.4.90.1670.0135.98
4.4.80.1170.0175.98
4.4.70.1130.0175.98
4.4.60.1230.0175.98
4.4.50.1030.0175.98
4.4.40.1300.0305.98
4.4.30.1030.0175.98
4.4.20.1330.0175.98
4.4.10.1330.0175.98
4.4.00.1100.0275.98
4.3.110.1370.0175.98
4.3.100.1300.0175.98
4.3.90.1130.0205.98
4.3.80.1530.0275.98
4.3.70.1600.0205.98
4.3.60.1670.0175.98
4.3.50.1630.0175.98
4.3.40.1370.0205.98
4.3.30.0630.0205.98
4.3.20.0930.0205.98
4.3.10.0870.0235.98
4.3.00.0830.0205.98

preferences:
106.17 ms | 401 KiB | 5 Q