3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Collection { public function forEach(callable $callback) { /* */ } public function list() { echo 'salam'; } public function class() { } } $c = new Collection; $c->list(); $c->class();

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.0130.00616.59
8.3.50.0120.00721.96
8.3.40.0090.00618.72
8.3.30.0070.01418.32
8.3.20.0070.00020.16
8.3.10.0040.00423.36
8.3.00.0040.00419.25
8.2.180.0120.00318.16
8.2.170.0000.01422.96
8.2.160.0130.00620.49
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0060.00319.36
8.2.120.0040.00426.35
8.2.110.0080.00020.56
8.2.100.0160.00217.68
8.2.90.0000.00719.23
8.2.80.0040.00417.97
8.2.70.0070.00317.63
8.2.60.0090.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00819.38
8.2.30.0040.00420.70
8.2.20.0000.01017.68
8.2.10.0050.00218.00
8.2.00.0040.00318.05
8.1.280.0080.00825.92
8.1.270.0050.00322.18
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0100.00022.34
8.1.230.0090.00317.65
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0090.00017.22
8.1.190.0030.00517.23
8.1.180.0030.00518.10
8.1.170.0050.00320.38
8.1.160.0040.00421.95
8.1.150.0080.00018.83
8.1.140.0040.00419.43
8.1.130.0000.00717.64
8.1.120.0030.00417.41
8.1.110.0040.00417.34
8.1.100.0000.00717.38
8.1.90.0030.00417.43
8.1.80.0040.00417.25
8.1.70.0030.00317.19
8.1.60.0080.00017.47
8.1.50.0030.00517.52
8.1.40.0020.00517.53
8.1.30.0040.00417.51
8.1.20.0050.00317.55
8.1.10.0000.00717.57
8.1.00.0000.00817.49
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0070.00017.26
8.0.260.0060.00017.18
8.0.250.0050.00216.84
8.0.240.0000.00716.79
8.0.230.0040.00416.78
8.0.220.0000.00716.89
8.0.210.0030.00316.70
8.0.200.0000.00616.88
8.0.190.0040.00416.76
8.0.180.0000.00716.77
8.0.170.0040.00416.77
8.0.160.0080.00016.72
8.0.150.0030.00316.87
8.0.140.0080.00016.75
8.0.130.0000.00613.27
8.0.120.0080.00016.80
8.0.110.0000.00716.76
8.0.100.0000.00816.73
8.0.90.0070.00016.80
8.0.80.0080.00816.86
8.0.70.0000.01016.70
8.0.60.0040.00416.79
8.0.50.0040.00416.71
8.0.30.0100.00817.27
8.0.20.0090.01217.40
8.0.10.0070.00316.80
8.0.00.0070.01116.73
7.4.330.0000.00516.89
7.4.320.0060.00016.59
7.4.300.0000.00616.44
7.4.290.0000.00716.61
7.4.280.0000.00716.40
7.4.270.0000.00716.62
7.4.260.0030.00316.40
7.4.250.0000.00816.48
7.4.240.0050.00316.54
7.4.230.0000.00716.31
7.4.220.0070.01516.54
7.4.210.0030.01316.68
7.4.200.0000.00716.71
7.4.160.0070.01016.62
7.4.150.0070.01517.40
7.4.140.0110.00717.86
7.4.130.0110.00916.45
7.4.120.0110.00816.54
7.4.110.0100.01016.46
7.4.100.0110.00816.43
7.4.90.0070.01016.45
7.4.80.0070.01019.39
7.4.70.0000.01616.60
7.4.60.0060.01016.27
7.4.50.0040.00816.30
7.4.40.0100.00716.51
7.4.30.0050.01516.48
7.4.00.0070.00715.06
7.3.330.0020.00213.23
7.3.320.0030.00413.19
7.3.310.0040.00416.21
7.3.300.0040.00416.24
7.3.290.0100.00616.23
7.3.280.0080.00916.20
7.3.270.0160.00317.40
7.3.260.0140.00316.23
7.3.250.0120.00616.37
7.3.240.0060.01116.29
7.3.230.0040.01216.39
7.3.210.0090.00616.52
7.3.200.0090.00816.09
7.3.190.0130.00616.40
7.3.180.0060.01116.32
7.3.170.0100.00616.27
7.3.160.0090.00616.37
7.2.330.0130.01216.40
7.2.320.0070.01016.34
7.2.310.0120.00616.53
7.2.300.0110.00716.47
7.2.290.0110.00616.46
7.2.60.0070.01016.72
7.2.00.0030.00919.30
7.1.200.0000.01215.61
7.1.100.0070.01017.69
7.1.70.0060.01016.79
7.1.60.0100.01619.48
7.1.50.0250.01334.75
7.1.00.0100.06722.42
7.0.200.0350.00914.61
7.0.60.0070.08020.07
7.0.50.0030.08717.78
7.0.40.0100.04020.14
7.0.30.0230.06720.36
7.0.20.0300.06720.07
7.0.10.0100.06320.08
7.0.00.0070.08320.16
5.6.280.0000.04720.80
5.6.210.0170.06320.65
5.6.200.0070.08018.18
5.6.190.0030.05320.77
5.6.180.0600.04320.57
5.6.170.0330.07020.45
5.6.160.0100.08320.48
5.6.150.0100.04718.16
5.6.140.0100.06318.19
5.6.130.0100.07718.17
5.6.120.0070.08321.03
5.6.110.0100.06020.96
5.6.100.0030.05721.07
5.6.90.0130.08321.11
5.6.80.0100.08020.38
5.5.350.3600.03320.40
5.5.340.0130.04717.99
5.5.330.0000.06020.44
5.5.320.0500.07720.27
5.5.310.0100.04320.29
5.5.300.0100.08017.92
5.5.290.0070.04017.95
5.5.280.0100.07720.87
5.5.270.0000.07720.74
5.5.260.0100.07320.92
5.5.250.0070.08320.46
5.5.240.0170.07720.18

preferences:
52.64 ms | 401 KiB | 5 Q