3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B { } class Cache { protected $store = array(); public function store($object) { $this->store[] = $object; } public function gc() { foreach ($this->store as $object) { debug_zval_dump($object); } } } $cache = new Cache(); $cache->store($a = new A); $cache->store(new B); $cache->gc();

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.0140.00416.62
8.3.50.0100.01022.10
8.3.40.0150.00018.56
8.3.30.0070.00718.45
8.3.20.0040.00420.29
8.3.10.0050.00321.95
8.3.00.0080.00019.25
8.2.180.0180.00316.63
8.2.170.0070.00722.96
8.2.160.0060.00820.50
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00017.63
8.2.120.0070.00026.35
8.2.110.0000.01019.30
8.2.100.0090.00317.75
8.2.90.0040.00419.40
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0040.00419.34
8.2.30.0040.00420.66
8.2.20.0080.00017.74
8.2.10.0030.00518.05
8.2.00.0040.00418.09
8.1.280.0180.00425.92
8.1.270.0040.00423.80
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00022.27
8.1.230.0110.00017.48
8.1.220.0040.00417.80
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0040.00418.68
8.1.160.0040.00422.02
8.1.150.0080.00018.83
8.1.140.0040.00419.62
8.1.130.0040.00417.70
8.1.120.0110.00417.49
8.1.110.0040.00417.52
8.1.100.0000.00917.47
8.1.90.0000.00717.38
8.1.80.0070.00017.38
8.1.70.0000.00817.48
8.1.60.0060.00317.57
8.1.50.0080.00017.54
8.1.40.0040.00717.46
8.1.30.0040.00417.71
8.1.20.0070.00017.53
8.1.10.0000.00717.55
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0080.00018.34
8.0.270.0000.00717.34
8.0.260.0070.00017.28
8.0.250.0030.00616.94
8.0.240.0040.00416.95
8.0.230.0030.00316.96
8.0.220.0000.00716.88
8.0.210.0040.00416.88
8.0.200.0070.00016.86
8.0.190.0030.00616.84
8.0.180.0040.00416.82
8.0.170.0040.00416.98
8.0.160.0000.00716.76
8.0.150.0050.00316.87
8.0.140.0100.00016.87
8.0.130.0060.00013.37
8.0.120.0040.00416.86
8.0.110.0040.00416.88
8.0.100.0040.00416.92
8.0.90.0050.00216.71
8.0.80.0090.00616.85
8.0.70.0040.00416.87
8.0.60.0000.00816.90
8.0.50.0000.00816.85
8.0.30.0090.00717.15
8.0.20.0130.00717.40
8.0.10.0000.00717.07
8.0.00.0130.00616.72
7.4.330.0000.00516.73
7.4.320.0000.00616.66
7.4.300.0000.00616.59
7.4.290.0030.00316.43
7.4.280.0040.00416.41
7.4.270.0030.00316.54
7.4.260.0030.00316.58
7.4.250.0000.00716.40
7.4.240.0000.00716.49
7.4.230.0000.00716.59
7.4.220.0140.00416.46
7.4.210.0110.00316.55
7.4.200.0030.00316.64
7.4.160.0120.00316.55
7.4.150.0140.00317.40
7.4.140.0110.00817.86
7.4.130.0050.01316.58
7.4.120.0130.00516.59
7.4.110.0100.00816.45
7.4.100.0070.01016.35
7.4.90.0070.01116.43
7.4.80.0140.00319.39
7.4.70.0090.00916.59
7.4.60.0080.00816.45
7.4.50.0030.01316.39
7.4.40.0100.01316.64
7.4.30.0170.00416.61
7.4.00.0150.00415.11
7.3.330.0050.00013.17
7.3.320.0030.00313.24
7.3.310.0050.00316.35
7.3.300.0030.00316.19
7.3.290.0060.00916.27
7.3.280.0160.01016.29
7.3.270.0120.00617.40
7.3.260.0150.00916.26
7.3.250.0070.01216.49
7.3.240.0130.00516.37
7.3.230.0070.01016.39
7.3.210.0060.01216.52
7.3.200.0060.01016.50
7.3.190.0110.00616.58
7.3.180.0130.00316.21
7.3.170.0130.00316.30
7.3.160.0160.00016.43
7.3.10.0030.00916.64
7.3.00.0100.00316.49
7.2.330.0060.01216.46
7.2.320.0090.01016.50
7.2.310.0070.01016.45
7.2.300.0120.00616.80
7.2.290.0120.01216.57
7.2.130.0030.01417.04
7.2.120.0030.00916.88
7.2.110.0040.01216.57
7.2.100.0040.01216.64
7.2.90.0090.00616.81
7.2.80.0090.00317.03
7.2.70.0100.00716.96
7.2.60.0080.00816.85
7.2.50.0040.01117.01
7.2.40.0070.00717.06
7.2.30.0070.01016.95
7.2.20.0100.00716.93
7.2.10.0080.00416.87
7.2.00.0080.00818.06
7.1.250.0100.00315.39
7.1.100.0310.00417.90
7.1.70.0060.00317.21
7.1.60.0100.01419.36
7.1.50.0060.01616.81
7.1.00.0000.08022.31
7.0.200.0040.00416.93
7.0.60.0130.07319.98
7.0.50.0030.04017.88
7.0.40.0130.04720.09
7.0.30.0270.04320.30
7.0.20.0270.08320.31
7.0.10.0130.07720.26
7.0.00.0070.05320.07
5.6.280.0000.05321.16
5.6.210.0200.07020.47
5.6.200.0100.07318.15
5.6.190.0100.08020.64
5.6.180.0300.05020.55
5.6.170.0270.07320.57
5.6.160.0070.04020.54
5.6.150.0030.05018.18
5.6.140.0070.08318.11
5.6.130.0100.07318.18
5.6.120.0130.07720.99
5.6.110.0100.08720.98
5.6.100.0030.04021.09
5.6.90.0070.04320.96
5.6.80.0000.04320.38
5.5.350.3630.04720.35
5.5.340.0170.07017.95
5.5.330.0130.05720.27
5.5.320.0170.04320.32
5.5.310.0170.04320.20
5.5.300.0100.07018.08
5.5.290.0070.08017.98
5.5.280.0000.07720.69
5.5.270.0100.05320.64
5.5.260.0100.05020.87
5.5.250.0130.05020.59
5.5.240.0330.06720.27

preferences:
35.71 ms | 401 KiB | 5 Q