3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Animal{ protected $isAlive; public function __construct(){ $this->isAlive = true; } public function isAlive(){ return $this->isAlive; } } class Cat extends Animal{ public function __construct(){ //we forgot something... } } $cat = new Cat(); var_dump($cat->isAlive());

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.0120.00918.18
8.3.50.0090.00616.48
8.3.40.0090.00618.77
8.3.30.0060.01218.49
8.3.20.0000.00820.61
8.3.10.0030.00620.64
8.3.00.0030.00619.67
8.2.180.0090.00618.42
8.2.170.0150.00022.96
8.2.160.0080.00820.64
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00519.70
8.2.120.0070.00026.35
8.2.110.0050.00520.92
8.2.100.0040.00717.72
8.2.90.0000.00817.78
8.2.80.0040.00418.09
8.2.70.0030.00517.50
8.2.60.0060.00317.50
8.2.50.0080.00017.63
8.2.40.0050.00319.10
8.2.30.0000.00719.27
8.2.20.0050.00217.98
8.2.10.0000.00717.90
8.2.00.0070.00019.25
8.1.280.0030.01425.92
8.1.270.0080.00023.77
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.85
8.1.230.0000.01120.80
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00517.23
8.1.190.0000.00917.22
8.1.180.0000.00818.10
8.1.170.0080.00019.01
8.1.160.0040.00418.87
8.1.150.0000.00718.78
8.1.140.0000.00817.60
8.1.130.0070.00019.02
8.1.120.0000.01017.29
8.1.110.0060.00317.28
8.1.100.0100.00017.45
8.1.90.0040.00417.43
8.1.80.0030.00617.41
8.1.70.0060.00317.44
8.1.60.0080.00017.58
8.1.50.0000.00717.52
8.1.40.0030.00617.43
8.1.30.0040.00417.70
8.1.20.0000.00717.63
8.1.10.0060.00317.55
8.1.00.0040.00417.50
8.0.300.0000.00719.93
8.0.290.0060.00316.63
8.0.280.0070.00018.40
8.0.270.0000.00817.13
8.0.260.0000.00817.18
8.0.250.0000.00716.91
8.0.240.0020.00516.89
8.0.230.0000.00816.90
8.0.220.0040.00416.73
8.0.210.0000.00716.84
8.0.200.0040.00416.80
8.0.190.0040.00416.93
8.0.180.0000.00816.75
8.0.170.0000.00816.91
8.0.160.0040.00316.82
8.0.150.0060.00316.76
8.0.140.0070.00016.69
8.0.130.0050.00013.28
8.0.120.0000.00816.69
8.0.110.0040.00416.77
8.0.100.0000.00716.68
8.0.90.0070.00016.80
8.0.80.0030.01816.79
8.0.70.0050.00316.90
8.0.60.0000.00716.72
8.0.50.0030.00516.75
8.0.30.0120.00616.93
8.0.20.0100.00917.40
8.0.10.0040.00416.84
8.0.00.0070.01016.71
7.4.330.0000.00515.55
7.4.320.0030.00316.41
7.4.300.0000.00716.56
7.4.290.0000.00716.63
7.4.280.0040.00416.63
7.4.270.0000.00716.46
7.4.260.0000.00816.47
7.4.250.0050.00316.47
7.4.240.0000.00716.57
7.4.230.0070.00016.63
7.4.220.0040.00416.61
7.4.210.0090.00816.60
7.4.200.0040.00416.70
7.4.160.0100.00616.36
7.4.140.0070.01517.86
7.4.130.0150.00616.58
7.4.120.0070.01216.43
7.4.110.0060.01316.58
7.4.100.0120.00616.50
7.4.90.0090.01216.49
7.4.80.0060.01319.39
7.4.70.0070.01116.44
7.4.60.0150.00416.47
7.4.50.0060.00916.36
7.4.40.0140.00916.24
7.4.00.0090.00615.16
7.3.330.0030.00313.23
7.3.320.0030.00313.25
7.3.310.0030.00316.13
7.3.300.0000.00716.19
7.3.290.0030.00316.32
7.3.280.0090.00616.20
7.3.260.0080.01016.27
7.3.240.0100.01016.44
7.3.230.0100.00616.34
7.3.210.0110.01116.46
7.3.200.0120.00416.19
7.3.190.0030.01316.37
7.3.180.0120.00616.36
7.3.170.0060.01216.15
7.3.160.0040.01416.31
7.2.330.0090.00816.45
7.2.320.0100.01016.57
7.2.310.0080.00916.36
7.2.300.0030.01416.41
7.2.290.0140.00716.75
7.2.60.2190.01015.06
7.2.50.2060.00614.83
7.2.40.2400.01115.02
7.2.30.2180.00815.32
7.2.20.2700.00915.27
7.2.10.2450.00615.27
7.2.00.2420.01015.18
7.1.200.0070.00715.71
7.1.170.1660.00613.77
7.1.160.2340.01316.63
7.1.150.2480.01216.59
7.1.140.2740.01216.66
7.1.130.1900.00816.80
7.1.120.2910.01216.76
7.1.110.3120.00816.01
7.1.100.3440.01015.89
7.1.90.3330.01015.97
7.1.80.2480.01315.75
7.1.70.3070.01015.37
7.1.60.2280.01333.27
7.1.50.2220.01332.91
7.1.40.2780.01032.50
7.1.30.2520.01332.59
7.1.20.3470.01532.61
7.1.10.3720.00714.47
7.1.00.2100.01614.79

preferences:
55.79 ms | 400 KiB | 5 Q