3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function getBar() { return new Bar(); } } class Bar { public function __invoke() { echo 'Bar!'; } } ((new Foo)->getBar())();

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.0090.00918.28
8.3.50.0080.00818.18
8.3.40.0170.00318.79
8.3.30.0120.00318.57
8.3.20.0040.00420.16
8.3.10.0080.00020.35
8.3.00.0040.00421.82
8.2.180.0100.00616.38
8.2.170.0100.00722.96
8.2.160.0120.00322.13
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.69
8.2.120.0070.00026.35
8.2.110.0100.00020.52
8.2.100.0080.00417.78
8.2.90.0030.00617.70
8.2.80.0040.00419.11
8.2.70.0030.00617.80
8.2.60.0070.00417.88
8.2.50.0060.00318.10
8.2.40.0040.00420.22
8.2.30.0000.00719.29
8.2.20.0000.00817.52
8.2.10.0080.00017.84
8.2.00.0000.00817.80
8.1.280.0120.00325.92
8.1.270.0060.00322.19
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0100.00724.02
8.1.230.0000.01122.12
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00416.97
8.1.180.0030.00518.10
8.1.170.0030.00618.41
8.1.160.0000.00722.09
8.1.150.0000.00818.75
8.1.140.0040.00419.38
8.1.130.0000.00717.57
8.1.120.0070.00017.21
8.1.110.0030.00617.35
8.1.100.0040.00417.35
8.1.90.0000.00717.16
8.1.80.0000.00717.30
8.1.70.0040.00417.36
8.1.60.0050.00217.49
8.1.50.0000.00817.40
8.1.40.0000.00717.27
8.1.30.0030.00617.56
8.1.20.0000.00717.38
8.1.10.0030.00617.46
8.1.00.0000.00717.40
8.0.300.0000.01020.11
8.0.290.0070.00016.75
8.0.280.0030.00318.39
8.0.270.0000.00717.16
8.0.260.0030.00317.25
8.0.250.0030.00316.86
8.0.240.0030.00316.82
8.0.230.0000.00616.92
8.0.220.0000.00816.78
8.0.210.0030.00616.80
8.0.200.0000.00616.86
8.0.190.0000.00716.79
8.0.180.0050.00216.76
8.0.170.0030.00516.73
8.0.160.0030.00316.71
8.0.150.0030.00316.75
8.0.140.0050.00216.80
8.0.130.0000.00613.29
8.0.120.0040.00416.81
8.0.110.0040.00416.83
8.0.100.0000.00716.79
8.0.90.0080.00016.73
8.0.80.0060.00916.75
8.0.70.0040.00416.80
8.0.60.0000.00716.85
8.0.50.0040.00416.76
8.0.30.0080.01316.87
8.0.20.0140.00717.40
8.0.10.0040.00416.94
8.0.00.0090.00816.59
7.4.330.0020.00216.83
7.4.320.0030.00316.44
7.4.300.0030.00316.61
7.4.290.0000.00716.35
7.4.280.0050.00316.41
7.4.270.0030.00316.42
7.4.260.0040.00416.57
7.4.250.0030.00316.55
7.4.240.0030.00316.56
7.4.230.0000.00616.48
7.4.220.0200.00716.45
7.4.210.0080.00816.58
7.4.200.0030.00316.54
7.4.160.0090.00616.34
7.4.150.0090.00917.40
7.4.140.0080.00817.86
7.4.130.0030.01616.55
7.4.120.0150.00716.47
7.4.110.0120.00616.46
7.4.100.0030.01516.40
7.4.90.0100.01016.41
7.4.80.0130.00619.39
7.4.70.0130.00616.46
7.4.60.0100.01016.32
7.4.50.0000.01616.63
7.4.40.0150.00716.45
7.4.30.0120.00616.50
7.4.00.0060.00914.98
7.3.330.0030.00313.05
7.3.320.0030.00313.21
7.3.310.0070.00016.33
7.3.300.0000.00616.11
7.3.290.0060.00316.12
7.3.280.0110.00816.27
7.3.270.0070.01117.40
7.3.260.0080.00916.31
7.3.250.0090.00816.33
7.3.240.0070.00916.29
7.3.230.0110.01116.39
7.3.210.0100.00716.24
7.3.200.0130.00516.41
7.3.190.0090.01216.17
7.3.180.0060.01116.56
7.3.170.0110.00516.44
7.3.160.0130.00716.41
7.2.330.0110.00716.32
7.2.320.0060.00916.33
7.2.310.0110.00616.68
7.2.300.0130.00316.49
7.2.290.0070.02016.43
7.2.60.0040.00416.62
7.2.00.0030.00719.47
7.1.200.0100.00315.67
7.1.100.0000.01418.08
7.1.70.0030.00616.74
7.1.60.0040.00819.40
7.1.50.0090.01216.86
7.1.00.0000.08022.28
7.0.200.0560.01014.76
7.0.60.0170.05721.73
7.0.50.0130.07017.85
7.0.40.0100.08020.07
7.0.30.0300.08320.13
7.0.20.0300.05720.33
7.0.10.0000.05020.09
7.0.00.0230.05320.23
5.6.280.0030.06320.93
5.6.210.0100.07320.57
5.6.200.0030.08718.30
5.6.190.0130.07020.48
5.6.180.0270.03320.59
5.6.170.0100.06720.47
5.6.160.0000.06020.55
5.6.150.0170.07018.20
5.6.140.0170.06018.26
5.6.130.0070.08318.29
5.6.120.0130.03321.04
5.6.110.0130.07720.98
5.6.100.0270.04720.98
5.6.90.0270.06320.95
5.6.80.0170.07020.37
5.5.350.4230.04720.50
5.5.340.0100.07717.98
5.5.330.0070.08320.42
5.5.320.0430.05720.29
5.5.310.0300.05320.18
5.5.300.0070.05017.97
5.5.290.0270.04317.98
5.5.280.0100.08020.77
5.5.270.0070.06720.88
5.5.260.0130.08020.84
5.5.250.0000.04320.66
5.5.240.0200.08020.19

preferences:
64.27 ms | 400 KiB | 5 Q