3v4l.org

run code in 300+ PHP versions simultaneously
<?php class billing{ private $cache=array(); public function resetCache(){ $this->cache=array(); return $this; } } class billing_info extends billing{ public function getPassword() { return $this->resetCache(); } } $o=new billing_info; var_dump($o->resetCache());

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.0190.00318.55
8.3.50.0140.01018.30
8.3.40.0150.00618.66
8.3.30.0040.01118.71
8.3.20.0000.00720.34
8.3.10.0030.00621.85
8.3.00.0050.00321.72
8.2.180.0110.00418.54
8.2.170.0070.00722.96
8.2.160.0190.00319.34
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0080.00019.16
8.2.100.0060.00617.97
8.2.90.0030.00619.22
8.2.80.0000.00817.97
8.2.70.0060.00317.62
8.2.60.0060.00317.93
8.2.50.0000.00818.10
8.2.40.0040.00420.45
8.2.30.0000.00720.97
8.2.20.0000.00817.87
8.2.10.0070.00018.07
8.2.00.0000.00718.18
8.1.280.0110.00425.92
8.1.270.0060.00320.40
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0120.00017.45
8.1.220.0050.00517.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00319.14
8.1.180.0040.00418.10
8.1.170.0000.00722.12
8.1.160.0050.00218.93
8.1.150.0000.00719.93
8.1.140.0040.00419.52
8.1.130.0040.00419.01
8.1.120.0040.00417.43
8.1.110.0000.00717.34
8.1.100.0040.00417.47
8.1.90.0030.00317.35
8.1.80.0000.00717.34
8.1.70.0030.00317.23
8.1.60.0080.00017.49
8.1.50.0030.00617.45
8.1.40.0000.00817.57
8.1.30.0040.00417.59
8.1.20.0000.00817.63
8.1.10.0000.00817.54
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0050.00516.58
8.0.280.0030.00318.43
8.0.270.0030.00317.07
8.0.260.0040.00417.10
8.0.250.0040.00416.78
8.0.240.0050.00316.95
8.0.230.0000.00716.79
8.0.220.0030.00316.75
8.0.210.0000.00816.74
8.0.200.0000.00616.86
8.0.190.0080.00016.89
8.0.180.0050.00216.83
8.0.170.0040.00416.86
8.0.160.0040.00416.89
8.0.150.0070.00016.72
8.0.140.0030.00316.82
8.0.130.0030.00313.26
8.0.120.0070.00016.82
8.0.110.0040.00416.71
8.0.100.0000.00716.79
8.0.90.0040.00416.78
8.0.80.0140.00716.82
8.0.70.0040.00416.73
8.0.60.0000.00716.85
8.0.50.0050.00316.76
8.0.30.0060.01017.19
8.0.20.0140.00517.40
8.0.10.0040.00416.91
8.0.00.0060.01216.55
7.4.330.0000.00615.55
7.4.320.0030.00316.54
7.4.300.0030.00316.58
7.4.290.0040.00416.42
7.4.280.0050.00316.61
7.4.270.0030.00316.52
7.4.260.0030.00516.50
7.4.250.0040.00416.49
7.4.240.0040.00416.59
7.4.230.0030.00316.70
7.4.220.0140.00716.55
7.4.210.0060.01016.59
7.4.200.0040.00416.61
7.4.160.0100.00616.37
7.4.150.0130.00417.40
7.4.140.0130.00617.86
7.4.130.0100.01116.47
7.4.120.0130.00716.54
7.4.110.0100.00716.55
7.4.100.0130.00316.59
7.4.90.0030.01516.63
7.4.80.0130.00319.39
7.4.70.0070.01016.50
7.4.60.0090.00616.46
7.4.50.0070.00416.21
7.4.40.0110.00416.44
7.4.30.0130.00916.53
7.4.00.0000.01514.63
7.3.330.0020.00213.22
7.3.320.0030.00313.29
7.3.310.0000.00716.33
7.3.300.0070.00016.29
7.3.290.0060.01016.25
7.3.280.0070.01016.30
7.3.270.0070.01017.40
7.3.260.0080.01316.38
7.3.250.0090.00916.35
7.3.240.0090.00916.35
7.3.230.0060.01216.47
7.3.210.0100.00716.34
7.3.200.0000.01816.58
7.3.190.0090.01216.54
7.3.180.0080.00816.27
7.3.170.0120.00416.30
7.3.160.0070.01116.48
7.2.330.0060.01216.33
7.2.320.0060.01016.49
7.2.310.0040.01216.54
7.2.300.0100.00716.62
7.2.290.0140.00416.71
7.2.60.0060.00916.93
7.2.50.0040.00416.84
7.1.200.0060.00615.76
7.1.70.0100.00717.14
7.1.60.0040.00717.13
7.1.50.0030.00716.92
7.1.40.0040.00716.66
7.1.30.0000.01016.73
7.1.20.0000.01116.73
7.1.10.0030.00616.56
7.1.00.0000.00816.67
7.0.200.0050.00216.72
7.0.190.0050.00316.82
7.0.180.0000.00716.30
7.0.170.0070.00016.33
7.0.160.0060.00316.34
7.0.150.0050.00216.40
7.0.140.0050.00516.37
7.0.130.0030.00616.34
7.0.120.0040.00716.55
7.0.110.0040.00416.55
7.0.100.0000.00816.30
7.0.90.0000.00816.43
7.0.80.0000.00816.25
7.0.70.0020.00516.29
7.0.60.0040.00416.33
7.0.50.0040.00416.25
7.0.40.0000.00715.00
7.0.30.0070.00015.00
7.0.20.0030.00515.00
7.0.10.0000.00815.00
7.0.00.0060.00315.00

preferences:
63.14 ms | 400 KiB | 5 Q