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.0150.00316.75
8.3.50.0140.00522.02
8.3.40.0070.00718.73
8.3.30.0110.00418.52
8.3.20.0080.00020.26
8.3.10.0040.00421.77
8.3.00.0000.00819.13
8.2.180.0040.01816.32
8.2.170.0070.00722.96
8.2.160.0140.00020.24
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0060.00317.75
8.2.120.0080.00026.35
8.2.110.0090.00020.47
8.2.100.0040.00718.34
8.2.90.0000.00819.24
8.2.80.0030.00617.97
8.2.70.0040.00417.62
8.2.60.0030.00618.02
8.2.50.0030.00618.07
8.2.40.0080.00019.28
8.2.30.0000.00720.52
8.2.20.0060.00317.68
8.2.10.0040.00418.08
8.2.00.0040.00418.09
8.1.280.0100.00325.92
8.1.270.0030.00624.01
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0080.00023.84
8.1.230.0070.00419.18
8.1.220.0040.00417.74
8.1.210.0000.00718.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0060.00318.82
8.1.160.0000.00722.00
8.1.150.0000.00718.84
8.1.140.0000.00819.63
8.1.130.0040.00417.63
8.1.120.0070.00417.52
8.1.110.0000.00717.51
8.1.100.0050.00217.48
8.1.90.0000.00717.48
8.1.80.0080.00017.48
8.1.70.0070.00017.35
8.1.60.0040.00417.60
8.1.50.0080.00017.55
8.1.40.0060.00617.50
8.1.30.0030.00617.66
8.1.20.0000.00717.61
8.1.10.0040.00417.53
8.1.00.0040.00717.50
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0070.00017.15
8.0.260.0000.00717.18
8.0.250.0040.00416.88
8.0.240.0040.00416.85
8.0.230.0030.00316.89
8.0.220.0030.00616.87
8.0.210.0000.00816.82
8.0.200.0030.00316.84
8.0.190.0000.00716.96
8.0.180.0000.00716.98
8.0.170.0000.00816.94
8.0.160.0000.00716.93
8.0.150.0030.00316.83
8.0.140.0030.00716.80
8.0.130.0050.00013.24
8.0.120.0040.00416.88
8.0.110.0040.00416.99
8.0.100.0070.00016.79
8.0.90.0030.00516.95
8.0.80.0030.01316.97
8.0.70.0000.00816.82
8.0.60.0040.00416.80
8.0.50.0000.00716.86
8.0.30.0100.00817.26
8.0.20.0130.00917.40
8.0.10.0040.00416.84
8.0.00.0110.00616.72
7.4.330.0000.00616.83
7.4.320.0070.00016.61
7.4.300.0000.00716.60
7.4.290.0030.00316.53
7.4.280.0080.00016.63
7.4.270.0000.00716.53
7.4.260.0040.00416.50
7.4.250.0040.00416.45
7.4.240.0000.00716.63
7.4.230.0000.00616.63
7.4.220.0120.00616.60
7.4.210.0050.00916.68
7.4.200.0030.00316.51
7.4.160.0120.00316.41
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0090.00816.48
7.4.120.0070.01016.56
7.4.110.0040.01416.46
7.4.100.0130.01016.71
7.4.90.0060.00916.49
7.4.80.0090.00619.39
7.4.70.0180.00916.64
7.4.60.0060.01016.56
7.4.50.0000.01416.53
7.4.40.0110.01116.27
7.4.30.0030.01316.59
7.4.00.0100.00614.93
7.3.330.0020.00213.29
7.3.320.0020.00613.26
7.3.310.0030.00316.21
7.3.300.0070.00016.14
7.3.290.0070.00916.26
7.3.280.0130.00416.30
7.3.270.0110.00817.40
7.3.260.0080.01116.34
7.3.250.0100.00716.47
7.3.240.0050.01116.28
7.3.230.0140.00316.58
7.3.210.0120.00616.47
7.3.200.0110.00816.47
7.3.190.0090.01316.55
7.3.180.0080.00816.43
7.3.170.0140.00316.38
7.3.160.0120.00616.36
7.3.120.0120.00614.89
7.3.110.0080.01014.71
7.3.100.0040.01114.79
7.3.90.0060.00814.73
7.3.80.0030.01114.92
7.3.70.0060.00714.73
7.3.60.0020.01214.70
7.3.50.0090.00514.68
7.3.40.0050.00614.57
7.3.30.0030.00914.73
7.3.20.0100.00216.45
7.3.10.0060.00516.60
7.3.00.0040.00816.67
7.2.330.0120.00616.46
7.2.320.0150.00616.43
7.2.310.0090.00916.40
7.2.300.0120.00616.80
7.2.290.0170.00016.43
7.2.250.0050.01315.20
7.2.240.0080.01114.88
7.2.230.0070.00815.02
7.2.220.0070.00815.24
7.2.210.0080.00615.03
7.2.200.0050.00815.08
7.2.190.0070.00915.07
7.2.180.0060.00715.00
7.2.170.0070.00814.95
7.2.160.0100.00714.95
7.2.150.0030.00616.84
7.2.140.0030.00917.00
7.2.130.0040.01116.96
7.2.120.0000.01117.04
7.2.110.0030.01016.93
7.2.100.0000.01016.67
7.2.90.0030.01316.97
7.2.80.0030.01016.70
7.2.70.0070.00716.74
7.2.60.0070.01016.90
7.2.50.0060.00616.76
7.2.40.0060.00616.98
7.2.30.0030.00916.98
7.2.20.0060.00316.97
7.2.10.0100.00616.87
7.2.00.0060.00518.13
7.1.330.0070.00815.79
7.1.320.0060.00615.70
7.1.310.0030.00915.80
7.1.300.0060.00715.71
7.1.290.0060.00715.77
7.1.280.0050.00915.77
7.1.270.0040.00815.76
7.1.260.0050.00415.80
7.1.250.0070.00015.65
7.1.200.0030.01015.78
7.1.100.0090.00317.84
7.1.70.0060.01017.14
7.1.60.0040.02219.36
7.1.50.0100.01416.96
7.1.00.0030.07722.30
7.0.200.0030.00716.82
7.0.60.0030.07319.78
7.0.50.0070.03717.94
7.0.40.0030.05320.30
7.0.30.0300.03320.06
7.0.20.0170.05020.23
7.0.10.0130.07320.15
7.0.00.0100.05720.23
5.6.280.0030.03321.00
5.6.210.0130.08020.45
5.6.200.0070.06318.28
5.6.190.0130.08020.47
5.6.180.0400.05320.47
5.6.170.0270.08020.44
5.6.160.0100.05720.47
5.6.150.0130.04318.27
5.6.140.0100.07318.19
5.6.130.0030.05018.15
5.6.120.0030.04720.95
5.6.110.0130.07020.90
5.6.100.0030.06321.14
5.6.90.0070.04020.99
5.6.80.0030.04020.43
5.5.350.4100.03720.31
5.5.340.0030.04017.96
5.5.330.0130.08320.39
5.5.320.0230.06020.32
5.5.310.0230.06720.34
5.5.300.0100.04717.98
5.5.290.0070.04017.97
5.5.280.0130.08020.85
5.5.270.0070.06320.77
5.5.260.0100.08020.89
5.5.250.0030.08320.78
5.5.240.0130.04720.27

preferences:
43.23 ms | 401 KiB | 5 Q