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.0210.00018.18
8.3.50.0140.00716.63
8.3.40.0040.01118.65
8.3.30.0070.00718.59
8.3.20.0040.00418.85
8.3.10.0040.00420.66
8.3.00.0040.00417.80
8.2.180.0130.01316.38
8.2.170.0030.01222.96
8.2.160.0070.01020.82
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00519.63
8.2.120.0040.00426.35
8.2.110.0100.00021.13
8.2.100.0040.00717.72
8.2.90.0080.00017.84
8.2.80.0040.00418.64
8.2.70.0050.00317.80
8.2.60.0050.00317.91
8.2.50.0040.00418.10
8.2.40.0050.00219.17
8.2.30.0030.00319.27
8.2.20.0040.00418.06
8.2.10.0000.00718.05
8.2.00.0030.00319.45
8.1.280.0040.01425.92
8.1.270.0090.00023.93
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.12
8.1.230.0110.00017.77
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00517.22
8.1.190.0050.00317.10
8.1.180.0070.00018.10
8.1.170.0030.00618.55
8.1.160.0050.00218.82
8.1.150.0000.00718.84
8.1.140.0040.00417.64
8.1.130.0000.00718.93
8.1.120.0000.01217.38
8.1.110.0080.00217.30
8.1.100.0080.00317.40
8.1.90.0000.00817.40
8.1.80.0000.01017.27
8.1.70.0040.00417.27
8.1.60.0050.00317.60
8.1.50.0030.00517.38
8.1.40.0000.00817.54
8.1.30.0040.00417.56
8.1.20.0000.00717.63
8.1.10.0000.00917.52
8.1.00.0000.00917.44
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.35
8.0.270.0000.00817.20
8.0.260.0000.00717.11
8.0.250.0030.00316.86
8.0.240.0030.00316.91
8.0.230.0000.00816.79
8.0.220.0030.00516.75
8.0.210.0070.00016.74
8.0.200.0000.01016.78
8.0.190.0040.00416.96
8.0.180.0030.00516.87
8.0.170.0030.00616.88
8.0.160.0000.00716.88
8.0.150.0000.00716.73
8.0.140.0030.00316.65
8.0.130.0060.00013.19
8.0.120.0000.00716.78
8.0.110.0000.00716.90
8.0.100.0070.00016.92
8.0.90.0030.00616.79
8.0.80.0090.00716.78
8.0.70.0000.00716.61
8.0.60.0070.00016.71
8.0.50.0050.00316.68
8.0.30.0120.00817.04
8.0.20.0110.00817.40
8.0.10.0000.00716.90
8.0.00.0120.00816.74
7.4.330.0020.00215.55
7.4.320.0030.00316.43
7.4.300.0000.00616.63
7.4.290.0070.00016.60
7.4.280.0000.00816.43
7.4.270.0030.00316.52
7.4.260.0080.00016.61
7.4.250.0020.00516.60
7.4.240.0030.00316.56
7.4.230.0040.00416.66
7.4.220.0040.00416.72
7.4.210.0050.01416.64
7.4.200.0040.00416.44
7.4.160.0090.00916.52
7.4.140.0090.00917.86
7.4.130.0090.00916.55
7.4.120.0080.00916.48
7.4.110.0060.01316.49
7.4.100.0030.01316.46
7.4.90.0090.00816.35
7.4.80.0150.00319.39
7.4.70.0120.00416.48
7.4.60.0060.01316.43
7.4.50.0110.00416.61
7.4.40.0170.00616.50
7.4.00.0050.01214.73
7.3.330.0000.00613.23
7.3.320.0030.00313.01
7.3.310.0000.00716.27
7.3.300.0030.00316.23
7.3.290.0030.00516.25
7.3.280.0090.00716.16
7.3.260.0120.00516.26
7.3.240.0090.00916.23
7.3.230.0130.00316.34
7.3.210.0040.01616.35
7.3.200.0100.01316.35
7.3.190.0140.00316.11
7.3.180.0090.00616.44
7.3.170.0100.00616.22
7.3.160.0060.00916.53
7.3.120.0120.00614.69
7.3.110.0090.00914.64
7.3.100.0070.01114.71
7.3.90.0030.01014.48
7.3.80.0030.01014.68
7.3.70.0170.00014.31
7.3.60.0070.01014.83
7.3.50.0000.01414.50
7.3.40.0100.00314.39
7.3.30.0130.00314.52
7.3.20.0060.01316.43
7.3.10.0130.00616.41
7.3.00.0100.00716.54
7.2.330.0120.00616.68
7.2.320.0150.00316.59
7.2.310.0070.01016.41
7.2.300.0140.00316.51
7.2.290.0090.01316.21
7.2.250.0060.00914.88
7.2.240.0100.01015.01
7.2.230.0070.01115.16
7.2.220.0100.00615.05
7.2.210.0130.00614.55
7.2.200.0030.01015.12
7.2.190.0070.01015.06
7.2.180.0030.01214.92
7.2.170.0150.00314.92
7.2.160.0000.01615.01
7.2.150.0060.01216.96
7.2.140.0120.00616.46
7.2.130.0030.01616.96
7.2.120.0000.01816.77
7.2.110.0070.00716.79
7.2.100.0060.00616.74
7.2.90.0130.00317.04
7.2.80.0130.00716.73
7.2.70.0070.00316.56
7.2.60.1060.00815.69
7.2.50.1320.01215.62
7.2.40.1030.00616.04
7.2.30.1190.00715.95
7.2.20.0900.01216.19
7.2.10.0750.00416.00
7.2.00.0670.01115.98
7.1.330.0060.01215.43
7.1.320.0000.01315.48
7.1.310.0090.00915.59
7.1.300.0070.01015.75
7.1.290.0000.01215.30
7.1.280.0020.01415.69
7.1.270.0090.00615.57
7.1.260.0000.01115.58
7.1.250.0000.01215.37
7.1.240.0080.00815.58
7.1.230.0110.00715.61
7.1.220.0100.00315.77
7.1.210.0100.00315.62
7.1.200.0080.00515.63
7.1.190.0040.00715.46
7.1.180.0060.01215.70
7.1.170.1120.00814.65
7.1.160.1320.00716.29
7.1.150.1150.00916.23
7.1.140.1150.01016.11
7.1.130.1480.00815.96
7.1.120.0990.00916.18
7.1.110.1460.00815.93
7.1.100.1030.01015.87
7.1.90.1320.00915.94
7.1.80.1480.00615.81
7.1.70.1490.00715.38
7.1.60.1720.01124.49
7.1.50.2160.00924.15
7.1.40.1970.01524.07
7.1.30.1490.01124.03
7.1.20.1640.00624.11
7.1.10.0990.00815.17
7.1.00.0600.00915.06
7.0.330.0120.00015.43
7.0.320.0030.01015.33
7.0.310.0110.00715.20
7.0.300.0070.00315.40
7.0.290.0030.00914.98
7.0.280.0040.00715.22
7.0.270.0110.00415.18
7.0.260.0070.00315.05
7.0.250.0040.00815.45
7.0.240.0060.00915.34
7.0.230.0070.00715.24
7.0.220.0080.00015.21
7.0.210.0060.00615.33
7.0.200.0070.00315.23
7.0.190.0070.00415.32
7.0.180.0060.00315.20
7.0.170.0070.00715.34
7.0.160.0080.00315.11
7.0.150.0030.01215.38
7.0.140.0040.01115.23
7.0.130.0060.00615.24
7.0.120.0070.01015.39
7.0.110.0100.00715.31
7.0.100.0060.00615.39
7.0.90.0060.00615.49
7.0.80.0050.00315.22
7.0.70.0040.00715.00
7.0.60.0060.00615.07
7.0.50.0070.00715.21
7.0.40.0070.00413.05
7.0.30.0050.00313.40
7.0.20.0100.00013.33
7.0.10.0070.00713.11
7.0.00.0060.00613.44
5.6.400.0000.01014.16
5.6.390.0080.00414.10
5.6.380.0040.01113.94
5.6.370.0000.01014.32
5.6.360.0060.00614.50
5.6.350.0110.00314.27
5.6.340.0100.00314.32
5.6.330.0070.00714.29
5.6.320.0030.00614.18
5.6.310.0000.01514.47
5.6.300.0030.00714.55
5.6.290.0070.00714.30
5.6.280.0060.00614.41
5.6.270.0030.01114.18
5.6.260.0000.01114.52
5.6.250.0000.00813.94
5.6.240.0080.00614.39
5.6.230.0000.01513.92
5.6.220.0040.00413.95
5.6.210.0080.00314.38
5.6.200.0060.00614.23
5.6.190.0060.00614.38
5.6.180.0030.00914.24
5.6.170.0030.01014.16
5.6.160.0030.01014.36
5.6.150.0000.01614.13
5.6.140.0070.00414.03
5.6.130.0080.00514.06
5.6.120.0110.00414.08
5.6.110.0030.00614.12
5.6.100.0040.00814.38
5.6.90.0000.01114.05
5.6.80.0080.00014.31
5.6.70.0030.00714.24
5.6.60.0030.01013.97
5.6.50.0090.00614.21
5.6.40.0030.00614.21
5.6.30.0000.00914.24
5.6.20.0030.00714.02
5.6.10.0080.00314.21
5.6.00.0090.00614.16

preferences:
58.47 ms | 401 KiB | 5 Q