3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x{ protected $xx; public function __construct(){ $this->xx ='X'; echo $this->xx; } } class y extends x { public function __construct(){ parent::__construct(); } } $yy = new y;

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.70.0150.00316.38
8.3.60.0110.00418.30
8.3.50.0090.01222.16
8.3.40.0090.01218.91
8.3.30.0120.00319.00
8.3.20.0000.00720.38
8.3.10.0040.00420.35
8.3.00.0070.00417.38
8.2.180.0110.00318.18
8.2.170.0140.00022.96
8.2.160.0110.00420.53
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00222.10
8.2.110.0000.00820.35
8.2.100.0080.00317.78
8.2.90.0000.00719.22
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0060.00317.89
8.2.50.0030.00618.07
8.2.40.0080.00018.09
8.2.30.0040.00419.46
8.2.20.0050.00217.54
8.2.10.0000.00817.98
8.2.00.0000.00717.50
8.1.280.0130.00725.92
8.1.270.0050.00323.92
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0080.00319.16
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00717.23
8.1.190.0070.00017.22
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00421.90
8.1.150.0000.00718.81
8.1.140.0070.00017.32
8.1.130.0050.00217.72
8.1.120.0030.00417.35
8.1.110.0070.00017.38
8.1.100.0050.00317.31
8.1.90.0030.00717.25
8.1.80.0000.00817.39
8.1.70.0050.00317.28
8.1.60.0090.00017.47
8.1.50.0040.00417.42
8.1.40.0040.00417.55
8.1.30.0030.00617.52
8.1.20.0000.00717.69
8.1.10.0040.00417.54
8.1.00.0000.00717.48
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.48
8.0.270.0000.00917.29
8.0.260.0080.00017.25
8.0.250.0030.00316.88
8.0.240.0070.00016.96
8.0.230.0020.00516.75
8.0.220.0040.00416.73
8.0.210.0040.00416.80
8.0.200.0060.00316.85
8.0.190.0080.00016.86
8.0.180.0040.00416.73
8.0.170.0050.00216.72
8.0.160.0000.00816.70
8.0.150.0030.00316.70
8.0.140.0000.00816.65
8.0.130.0030.00313.23
8.0.120.0000.00816.75
8.0.110.0000.00716.86
8.0.100.0000.00716.79
8.0.90.0030.00416.70
8.0.80.0110.00416.71
8.0.70.0000.00716.75
8.0.60.0050.00316.89
8.0.50.0040.00416.67
8.0.30.0090.00816.81
8.0.20.0110.00817.40
8.0.10.0070.00017.05
8.0.00.0080.01316.87
7.4.330.0040.00015.00
7.4.320.0000.00716.43
7.4.300.0060.00016.66
7.4.290.0000.00716.58
7.4.280.0040.00416.48
7.4.270.0000.00616.59
7.4.260.0030.00616.59
7.4.250.0040.00416.52
7.4.240.0040.00416.58
7.4.230.0070.00016.57
7.4.220.0100.01016.69
7.4.210.0040.01116.46
7.4.200.0030.00316.66
7.4.160.0030.01316.34
7.4.150.0150.00317.40
7.4.140.0100.00817.86
7.4.130.0090.00716.39
7.4.120.0110.00516.49
7.4.110.0000.02116.49
7.4.100.0030.01316.45
7.4.90.0080.00816.32
7.4.80.0090.00919.39
7.4.70.0130.00716.58
7.4.60.0060.01016.46
7.4.50.0030.00616.31
7.4.40.0040.01216.47
7.4.30.0090.01216.46
7.4.00.0060.01214.92
7.3.330.0000.00713.12
7.3.320.0000.00513.17
7.3.310.0030.00316.35
7.3.300.0040.00416.23
7.3.290.0090.00616.32
7.3.280.0070.00916.31
7.3.270.0060.01217.40
7.3.260.0060.01216.38
7.3.250.0070.01216.28
7.3.240.0100.00716.50
7.3.230.0060.00916.66
7.3.210.0110.00516.47
7.3.200.0080.00819.39
7.3.190.0070.01016.59
7.3.180.0060.00916.52
7.3.170.0100.00616.29
7.3.160.0030.01216.44
7.2.330.0120.00616.75
7.2.320.0060.01216.42
7.2.310.0030.01616.76
7.2.300.0120.00616.67
7.2.290.0070.01316.42
7.2.60.0200.00317.02
7.2.00.0120.00619.67
7.1.200.0060.00615.67
7.1.100.0040.00717.91
7.1.70.0040.00417.04
7.1.60.0110.01419.61
7.1.50.0000.01716.88
7.1.00.0070.07322.54
7.0.200.0050.00516.63
7.0.140.0000.07721.95
7.0.120.0000.07321.93
7.0.110.0130.03322.10
7.0.100.0030.04322.11
7.0.90.0070.06722.17
7.0.80.0070.04021.93
7.0.70.0030.04322.01
7.0.60.0030.04022.18
7.0.50.0000.08022.07
7.0.40.0070.04020.07
7.0.30.0100.03719.93
7.0.20.0000.04720.03
7.0.10.0070.04020.05
7.0.00.0030.04320.13
5.6.280.0070.06720.87
5.6.270.0070.08021.05
5.6.260.0030.07320.93
5.6.250.0070.05720.92
5.6.240.0100.08721.06
5.6.230.0100.05320.70
5.6.220.0100.03720.97
5.6.210.0000.05020.90
5.6.200.0070.04320.89
5.6.190.0030.08320.81
5.6.180.0100.04721.05
5.6.170.0000.04320.96
5.6.160.0000.04321.00
5.6.150.0070.04320.89
5.6.140.0030.04321.00
5.6.130.0030.04720.89
5.6.120.0100.07020.96
5.6.110.0030.04020.95
5.6.100.0030.08021.02
5.6.90.0030.08321.01
5.6.80.0100.06720.38
5.6.70.0030.07320.09
5.6.60.0070.06720.35
5.6.50.0070.07320.43
5.6.40.0130.03720.31
5.6.30.0030.05320.34
5.6.20.0030.08020.38
5.6.10.0070.07020.23
5.6.00.0130.03720.09
5.5.380.0130.07317.57
5.5.370.0100.08017.59
5.5.360.0030.04317.68
5.5.350.0000.04317.53
5.5.340.0100.04717.93
5.5.330.0030.08018.26
5.5.320.0070.03717.83
5.5.310.0070.04317.91
5.5.300.0030.06718.22
5.5.290.0030.05018.09
5.5.280.0000.08718.22
5.5.270.0030.04717.82
5.5.260.0170.07318.14
5.5.250.0070.09017.93
5.5.240.0100.06317.44
5.5.230.0070.06717.21
5.5.220.0030.06717.30
5.5.210.0070.05017.46
5.5.200.0100.03017.31
5.5.190.0030.06317.57
5.5.180.0070.07317.18
5.5.160.0030.06317.40
5.5.150.0070.06017.28
5.5.140.0100.07317.30
5.5.130.0200.03017.39
5.5.120.0170.07017.47
5.5.110.0100.04317.45
5.5.100.0070.07017.51
5.5.90.0070.06717.35
5.5.80.0000.08317.21
5.5.70.0170.03717.37
5.5.60.0000.08017.32
5.5.50.0070.06017.18
5.5.40.0030.07317.34
5.5.30.0130.04017.32
5.5.20.0070.06717.09
5.5.10.0100.05017.35
5.5.00.0030.04317.16
5.4.450.0070.06719.22
5.4.440.0070.06719.25
5.4.430.0070.07019.25
5.4.420.0030.08319.43
5.4.410.0000.08319.23
5.4.400.0100.06719.14
5.4.390.0100.07719.11
5.4.380.0000.07019.14
5.4.370.0030.07718.89
5.4.360.0030.07718.96
5.4.350.0100.06318.94
5.4.340.0100.06019.09
5.4.320.0130.07018.96
5.4.310.0030.06718.90
5.4.300.0170.06318.92
5.4.290.0030.05318.86
5.4.280.0100.07019.16
5.4.270.0070.06019.12
5.4.260.0130.07019.14
5.4.250.0030.07718.93
5.4.240.0070.03718.88
5.4.230.0100.06718.93
5.4.220.0070.07018.89
5.4.210.0000.04718.96
5.4.200.0030.07318.89
5.4.190.0030.06019.08
5.4.180.0000.05719.23
5.4.170.0030.06319.23
5.4.160.0000.08319.02
5.4.150.0070.06019.08
5.4.140.0070.07316.36
5.4.130.0000.07716.48
5.4.120.0000.06316.46
5.4.110.0000.04716.27
5.4.100.0030.04716.37
5.4.90.0030.07716.53
5.4.80.0030.06716.43
5.4.70.0170.06316.35
5.4.60.0070.06716.40
5.4.50.0000.06016.47
5.4.40.0070.06716.50
5.4.30.0030.05716.45
5.4.20.0000.07016.20
5.4.10.0030.07716.41
5.4.00.0070.07315.90
5.3.290.0030.07714.66
5.3.280.0000.07014.47
5.3.270.0030.04314.62
5.3.260.0070.06314.68
5.3.250.0030.06314.69
5.3.240.0000.07314.46
5.3.230.0030.07714.68
5.3.220.0070.04014.70
5.3.210.0030.07714.59
5.3.200.0070.07314.57
5.3.190.0000.04714.53
5.3.180.0130.03014.71
5.3.170.0030.07714.43
5.3.160.0030.08314.57
5.3.150.0130.06014.42
5.3.140.0070.07714.68
5.3.130.0130.06314.58
5.3.120.0030.06714.56
5.3.110.0030.06714.67
5.3.100.0130.06014.00
5.3.90.0030.04314.04
5.3.80.0070.05714.01
5.3.70.0030.04314.06
5.3.60.0000.03714.06
5.3.50.0030.07314.02
5.3.40.0000.07713.91
5.3.30.0070.07013.97
5.3.20.0030.06013.65
5.3.10.0030.03313.68
5.3.00.0070.03013.78
5.2.170.0030.06011.29
5.2.160.0030.03711.21
5.2.150.0000.06311.11
5.2.140.0030.06011.20
5.2.130.0000.03711.07
5.2.120.0030.02711.25
5.2.110.0030.02711.16
5.2.100.0030.02711.33
5.2.90.0000.03011.24
5.2.80.0000.03011.12
5.2.70.0000.03311.16
5.2.60.0000.03011.02
5.2.50.0030.03011.15
5.2.40.0030.02710.98
5.2.30.0030.02710.99
5.2.20.0000.02310.93
5.2.10.0030.02010.86
5.2.00.0030.02010.94
5.1.60.0030.01710.07
5.1.50.0000.02310.07
5.1.40.0000.0209.94
5.1.30.0000.02010.36
5.1.20.0030.02010.44
5.1.10.0030.02010.03
5.1.00.0030.01710.05
5.0.50.0000.0179.79
5.0.40.0030.0179.79
5.0.30.0000.0309.79
5.0.20.0030.0139.79
5.0.10.0030.0139.79
5.0.00.0030.0239.79
4.4.90.0030.0139.79
4.4.80.0030.0109.79
4.4.70.0000.0139.79
4.4.60.0000.0139.79
4.4.50.0000.0209.79
4.4.40.0000.0209.79
4.4.30.0000.0139.79
4.4.20.0000.0139.79
4.4.10.0030.0109.79
4.4.00.0000.0409.79
4.3.110.0000.0139.79
4.3.100.0000.0109.79
4.3.90.0000.0139.79
4.3.80.0000.0209.79
4.3.70.0000.0109.79
4.3.60.0000.0139.79
4.3.50.0000.0139.79
4.3.40.0000.0209.79
4.3.30.0000.0139.79
4.3.20.0000.0139.79
4.3.10.0000.0139.79
4.3.00.0000.0139.79

preferences:
69.36 ms | 401 KiB | 5 Q