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();

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.0150.00916.62
8.3.50.0130.00821.92
8.3.40.0160.00318.71
8.3.30.0100.00718.71
8.3.20.0050.00320.20
8.3.10.0040.00423.53
8.3.00.0000.00819.26
8.2.180.0110.01118.16
8.2.170.0130.00322.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00617.63
8.2.120.0040.00426.35
8.2.110.0060.00320.31
8.2.100.0040.00817.91
8.2.90.0050.00319.06
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0040.00417.80
8.2.50.0050.00318.10
8.2.40.0040.00420.42
8.2.30.0050.00320.66
8.2.20.0080.00017.63
8.2.10.0050.00217.85
8.2.00.0000.00718.07
8.1.280.0030.01225.92
8.1.270.0030.00621.82
8.1.260.0000.00728.09
8.1.250.0070.00728.09
8.1.240.0060.00322.02
8.1.230.0060.00617.42
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0050.00221.91
8.1.150.0040.00418.83
8.1.140.0040.00419.38
8.1.130.0030.00317.70
8.1.120.0030.00517.29
8.1.110.0030.00417.32
8.1.100.0050.00317.45
8.1.90.0030.00517.45
8.1.80.0050.00317.27
8.1.70.0000.00717.31
8.1.60.0050.00317.51
8.1.50.0030.00517.38
8.1.40.0080.00017.50
8.1.30.0080.00017.61
8.1.20.0050.00317.61
8.1.10.0000.00717.50
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0070.00017.23
8.0.260.0000.00617.15
8.0.250.0040.00416.90
8.0.240.0000.00716.88
8.0.230.0070.00016.78
8.0.220.0000.00716.83
8.0.210.0000.00816.74
8.0.200.0000.00616.85
8.0.190.0070.00016.87
8.0.180.0040.00416.74
8.0.170.0060.00316.84
8.0.160.0070.00016.84
8.0.150.0060.00316.74
8.0.140.0030.00716.68
8.0.130.0030.00313.25
8.0.120.0080.00016.68
8.0.110.0070.00016.79
8.0.100.0000.00816.71
8.0.90.0040.00416.64
8.0.80.0100.00616.87
8.0.70.0070.00016.66
8.0.60.0000.00716.80
8.0.50.0050.00216.82
8.0.30.0100.00917.28
8.0.20.0100.01117.40
8.0.10.0040.00416.89
8.0.00.0100.00816.90
7.4.330.0000.00516.76
7.4.320.0000.00616.36
7.4.300.0000.00616.51
7.4.290.0050.00316.59
7.4.280.0000.00716.59
7.4.270.0000.00716.52
7.4.260.0080.00016.45
7.4.250.0040.00416.47
7.4.240.0020.00516.57
7.4.230.0000.00716.71
7.4.220.0140.01016.52
7.4.210.0080.00616.48
7.4.200.0030.00316.50
7.4.160.0120.00416.65
7.4.150.0170.00717.40
7.4.140.0110.00617.86
7.4.130.0090.00816.46
7.4.120.0090.00816.51
7.4.110.0080.01116.32
7.4.100.0130.01016.50
7.4.90.0100.00616.48
7.4.80.0130.00619.39
7.4.70.0120.00616.49
7.4.60.0120.00916.44
7.4.50.0030.01016.52
7.4.40.0070.01016.55
7.4.30.0030.01716.46
7.4.00.0040.01414.93
7.3.330.0020.00213.02
7.3.320.0000.00813.14
7.3.310.0040.00416.13
7.3.300.0040.00416.10
7.3.290.0050.01216.20
7.3.280.0120.00616.20
7.3.270.0130.00317.40
7.3.260.0150.00316.15
7.3.250.0070.01116.35
7.3.240.0130.00616.22
7.3.230.0140.00316.39
7.3.210.0080.00816.37
7.3.200.0140.00316.47
7.3.190.0070.01016.14
7.3.180.0060.00916.32
7.3.170.0100.01016.27
7.3.160.0030.01316.41
7.2.330.0130.00716.68
7.2.320.0070.01016.74
7.2.310.0120.00616.65
7.2.300.0070.01016.45
7.2.290.0140.00316.60
7.2.60.0070.00716.86
7.2.00.0060.00619.41
7.1.200.0070.00015.62
7.1.100.0030.01017.82
7.1.70.0000.01017.10
7.1.60.0130.01019.48
7.1.50.0260.01334.71
7.1.00.0030.07022.37
7.0.200.0180.00614.75
7.0.60.0100.06020.02
7.0.50.0100.08317.87
7.0.40.0100.08320.38
7.0.30.0300.05320.24
7.0.20.0330.07320.09
7.0.10.0000.05720.20
7.0.00.0070.07320.29
5.6.280.0030.04720.88
5.6.210.0100.07720.75
5.6.200.0100.07718.24
5.6.190.0170.07720.49
5.6.180.0470.05720.52
5.6.170.0330.07020.51
5.6.160.0130.06720.55
5.6.150.0070.05318.16
5.6.140.0130.03318.14
5.6.130.0070.07718.24
5.6.120.0030.06321.03
5.6.110.0100.06321.11
5.6.100.0100.08320.99
5.6.90.0130.06320.96
5.6.80.0170.07020.24
5.5.350.3530.04720.34
5.5.340.0070.04018.03
5.5.330.0170.07320.27
5.5.320.0470.07020.34
5.5.310.0130.05020.28
5.5.300.0070.05717.99
5.5.290.0130.07317.98
5.5.280.0070.09020.83
5.5.270.0100.07020.79
5.5.260.0070.06720.86
5.5.250.0100.07720.61
5.5.240.0200.07320.18

preferences:
43.69 ms | 401 KiB | 5 Q