3v4l.org

run code in 300+ PHP versions simultaneously
<?php class XYZ{ static $mama = 1; var $papa = 1; } class ABCD extends XYZ { const girl = 2; static $boy = 3; function xyz($a) { $this->hello = self::girl + ABCD::girl + $a*2 + self::$boy + ABCD::$boy + parent::$mama; return $this->hello; } } $me = new ABCD(); echo $me->xyz(1) + $me->papa;

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.0070.01416.63
8.3.50.0110.00417.98
8.3.40.0070.00718.82
8.3.30.0000.01518.68
8.3.20.0000.00721.72
8.3.10.0040.00423.54
8.3.00.0080.00021.85
8.2.180.0120.00825.92
8.2.170.0110.00419.11
8.2.160.0140.00422.96
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00019.44
8.2.120.0000.00826.35
8.2.110.0070.00421.04
8.2.100.0000.01118.03
8.2.90.0000.00918.03
8.2.80.0040.00418.03
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0000.00718.22
8.2.40.0050.00320.60
8.2.30.0030.00319.45
8.2.20.0030.00717.95
8.2.10.0070.00017.94
8.2.00.0000.00918.10
8.1.280.0110.01125.92
8.1.270.0040.00423.70
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.88
8.1.230.0080.00422.73
8.1.220.0100.00017.76
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00517.35
8.1.180.0040.00418.10
8.1.170.0030.00618.75
8.1.160.0000.00718.85
8.1.150.0030.00318.89
8.1.140.0000.00817.69
8.1.130.0000.00817.39
8.1.120.0030.00317.38
8.1.110.0000.00717.42
8.1.100.0000.01117.37
8.1.90.0000.00717.31
8.1.80.0060.00317.43
8.1.70.0030.00317.30
8.1.60.0000.01017.58
8.1.50.0040.00417.52
8.1.40.0080.00017.48
8.1.30.0000.00717.62
8.1.20.0000.01117.66
8.1.10.0060.00317.50
8.1.00.0050.00517.45
8.0.300.0040.00421.42
8.0.290.0080.00016.63
8.0.280.0030.00318.46
8.0.270.0070.00017.23
8.0.260.0030.00616.86
8.0.250.0000.00616.90
8.0.240.0000.00816.98
8.0.230.0000.00716.96
8.0.220.0050.00216.83
8.0.210.0070.00016.84
8.0.200.0000.00616.94
8.0.190.0000.00716.86
8.0.180.0050.00316.86
8.0.170.0090.00016.86
8.0.160.0040.00416.73
8.0.150.0000.00816.66
8.0.140.0050.00316.70
8.0.130.0040.00413.22
8.0.120.0070.00016.77
8.0.110.0040.00416.81
8.0.100.0000.00816.71
8.0.90.0000.00716.86
8.0.80.0000.01516.85
8.0.70.0040.00416.89
8.0.60.0040.00416.78
8.0.50.0050.00216.84
8.0.30.0090.00917.15
8.0.20.0150.00417.40
8.0.10.0050.00216.84
8.0.00.0110.00616.85
7.4.330.0000.00515.55
7.4.320.0060.00016.49
7.4.300.0040.00416.58
7.4.290.0040.00416.51
7.4.280.0040.00416.58
7.4.270.0000.00816.60
7.4.260.0030.00316.43
7.4.250.0060.00316.56
7.4.240.0070.00016.60
7.4.230.0000.00716.67
7.4.220.0070.00016.66
7.4.210.0070.01116.56
7.4.200.0040.00416.41
7.4.160.0070.00916.55
7.4.140.0120.00817.86
7.4.130.0150.00316.56
7.4.120.0090.01116.56
7.4.110.0050.01316.56
7.4.100.0070.01016.49
7.4.90.0100.00716.57
7.4.80.0110.01119.39
7.4.70.0030.01416.47
7.4.60.0060.00916.37
7.4.50.0080.00816.46
7.4.40.0120.00916.31
7.4.00.0060.01115.10
7.3.330.0040.00413.25
7.3.320.0000.00713.24
7.3.310.0050.00316.25
7.3.300.0040.00416.34
7.3.290.0030.00316.18
7.3.280.0080.00716.25
7.3.260.0120.00816.44
7.3.240.0100.00816.44
7.3.230.0070.01016.44
7.3.210.0160.01916.36
7.3.200.0030.01216.21
7.3.190.0090.00916.61
7.3.180.0040.01216.53
7.3.170.0070.01116.41
7.3.160.0130.00316.24
7.2.330.0040.01416.73
7.2.320.0060.01216.85
7.2.310.0140.00916.41
7.2.300.0100.00616.77
7.2.290.0060.01216.88
7.2.60.0000.01217.07
7.2.40.0230.01018.14
7.2.30.0220.01218.18
7.2.20.0220.01018.12
7.2.10.0350.01118.02
7.2.00.0330.01218.11
7.1.200.0000.01115.82
7.1.160.0190.00916.95
7.1.150.0210.01117.03
7.1.140.0180.01317.08
7.1.130.0230.00816.94
7.1.120.0350.00917.01
7.1.110.0190.01116.40
7.1.100.0430.00616.60
7.1.90.0220.01116.30
7.1.80.0220.01316.23
7.1.70.1560.00815.44
7.1.60.0430.01133.20
7.1.50.0440.01232.97
7.1.40.0430.01232.70
7.1.30.0430.01232.62
7.1.20.0440.01432.70
7.1.10.0220.01214.44
7.1.00.0380.01114.56

preferences:
76.2 ms | 401 KiB | 5 Q