3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public static function ii(){ var_dump($this->BB); } } class b extends a { public $BB; public function aa(){ $a = new a(); parent::ii(); } } $bb = new b(); $bb->aa();

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.40.0070.00718.61
8.3.30.0070.01020.22
8.3.20.0030.00520.21
8.3.10.0000.00822.04
8.3.00.0040.00422.52
8.2.170.0040.01122.96
8.2.160.0030.01022.13
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0100.00326.16
8.2.120.0030.00621.05
8.2.110.0080.00022.30
8.2.100.0090.00317.72
8.2.90.0040.00418.89
8.2.80.0040.00419.29
8.2.70.0060.00317.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0070.00017.98
8.2.20.0040.00417.65
8.2.10.0080.00017.73
8.2.00.0030.00617.66
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0000.00823.87
8.1.230.0070.00419.06
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.52
8.1.180.0030.00619.01
8.1.170.0060.00318.54
8.1.160.0000.00722.07
8.1.150.0040.00418.66
8.1.140.0070.00017.42
8.1.130.0030.00317.77
8.1.120.0000.00717.29
8.1.110.0050.00317.27
8.1.100.0040.00417.29
8.1.90.0030.00317.27
8.1.80.0060.00317.38
8.1.70.0030.00317.36
8.1.60.0000.00817.40
8.1.50.0000.00817.34
8.1.40.0000.00717.43
8.1.30.0000.00717.66
8.1.20.0080.00017.65
8.1.10.0060.00317.58
8.1.00.0070.00417.41
8.0.300.0000.00818.77
8.0.290.0020.00517.05
8.0.280.0030.00318.27
8.0.270.0000.00717.13
8.0.260.0040.00416.77
8.0.250.0070.00016.91
8.0.240.0070.00016.97
8.0.230.0070.00017.00
8.0.220.0000.00716.80
8.0.210.0030.00316.92
8.0.200.0000.00616.94
8.0.190.0040.00416.93
8.0.180.0050.00316.79
8.0.170.0050.00316.91
8.0.160.0000.00716.93
8.0.150.0040.00416.71
8.0.140.0070.00016.89
8.0.130.0050.00013.27
8.0.120.0050.00216.71
8.0.110.0040.00416.84
8.0.100.0000.00716.91
8.0.90.0000.00716.95
8.0.80.0150.00016.87
8.0.70.0070.00016.97
8.0.60.0040.00416.76
8.0.50.0050.00316.88
8.0.30.0090.01217.19
8.0.20.0030.01617.40
8.0.10.0000.00716.88
8.0.00.0110.01016.82
7.4.330.0000.00515.00
7.4.320.0030.00316.46
7.4.300.0000.00616.48
7.4.290.0000.00716.58
7.4.280.0030.00716.48
7.4.270.0070.00016.60
7.4.260.0050.00013.27
7.4.250.0040.00416.32
7.4.240.0050.00316.50
7.4.230.0030.00316.58
7.4.220.0070.01016.51
7.4.210.0100.00616.50
7.4.200.0000.00716.66
7.4.190.0000.00816.55
7.4.160.0060.00916.40
7.4.150.0060.01517.40
7.4.140.0050.01517.86
7.4.130.0140.00616.59
7.4.120.0040.01316.51
7.4.110.0160.00016.45
7.4.100.0150.00716.38
7.4.90.0070.01016.65
7.4.80.0070.01019.39
7.4.70.0100.00716.50
7.4.60.0100.00716.49
7.4.50.0050.00016.19
7.4.40.0030.00922.77
7.4.30.0040.01216.47
7.4.00.0090.00915.03
7.3.330.0020.00213.29
7.3.320.0050.00213.34
7.3.310.0000.00716.39
7.3.300.0040.00416.31
7.3.290.0030.01016.35
7.3.280.0100.00816.36
7.3.270.0060.01117.40
7.3.260.0070.01616.46
7.3.250.0120.00616.52
7.3.240.0110.00716.54
7.3.230.0080.01116.39
7.3.210.0090.01316.45
7.3.200.0110.00619.39
7.3.190.0090.00916.42
7.3.180.0070.01016.17
7.3.170.0130.00316.61
7.3.160.0120.00916.30
7.3.120.0110.00614.85
7.2.330.0120.00616.55
7.2.320.0120.01116.73
7.2.310.0060.01316.40
7.2.300.0050.01116.49
7.2.290.0100.00616.48
7.2.60.0040.00816.65
7.1.200.0060.00615.59
7.1.70.0040.00817.05
7.1.60.0070.01819.43
7.1.50.0040.01916.80
7.1.00.0030.03322.42
7.0.200.0040.00716.63
7.0.140.0030.07022.18
7.0.60.0170.04720.03
7.0.50.0100.06317.97
7.0.40.0070.09320.02
7.0.30.0570.07020.06
7.0.20.0370.07320.06
7.0.10.0170.06020.07
7.0.00.0000.05320.33
5.6.280.0030.07320.85
5.6.210.0030.08020.51
5.6.200.0130.07018.27
5.6.190.0100.08020.61
5.6.180.0270.04020.48
5.6.170.0330.05320.40
5.6.160.0070.04718.16
5.6.150.0030.08018.28
5.6.140.0070.07318.25
5.6.130.0030.04018.15
5.6.120.0130.08321.02
5.6.110.0030.05721.01
5.6.100.0170.06321.04
5.6.90.0130.05321.00
5.6.80.0030.07320.38
5.5.350.0070.05320.31
5.5.340.0070.06718.05
5.5.330.0030.08720.43
5.5.320.0200.06320.25
5.5.310.0170.04320.39
5.5.300.0070.05017.97
5.5.290.0070.07717.96
5.5.280.0200.07320.97
5.5.270.0130.07320.85
5.5.260.0130.06720.67
5.5.250.0030.07020.70
5.5.240.0170.05020.15
5.4.450.0770.08319.17
5.4.440.0900.06019.46
5.4.430.1030.05719.58
5.4.420.0700.06019.73
5.4.410.0730.06319.43
5.4.400.1500.05718.77
5.4.390.0130.05018.63
5.4.380.0370.04318.52
5.4.370.0130.06318.78
5.4.360.0170.04718.57
5.4.350.0080.04212.02
5.4.340.0110.04012.02
5.4.320.0050.03912.50
5.4.310.0040.04312.50
5.4.300.0070.03612.50
5.4.290.0090.04212.50
5.4.280.0080.03412.40
5.4.270.0060.04612.40
5.4.260.0060.03812.40
5.4.250.0060.03912.40
5.4.240.0130.04719.09
5.4.230.0130.04318.76
5.4.220.0070.05318.99
5.4.210.0000.05719.09
5.4.200.0030.05318.90
5.4.190.0030.05319.02
5.4.180.0030.06719.00
5.4.170.0200.05018.95
5.4.160.0170.04318.92
5.4.150.0100.05318.89
5.4.140.0070.06016.65
5.4.130.0030.07716.40
5.4.120.0100.05316.61
5.4.110.0100.05016.43
5.4.100.0100.04716.41
5.4.90.0070.05316.57
5.4.80.0130.04316.43
5.4.70.0130.04716.52
5.4.60.0130.04316.43
5.4.50.0100.04016.59
5.4.40.0100.04716.65
5.4.30.0030.06716.53
5.4.20.0100.04716.38
5.4.10.0000.05316.55
5.4.00.0100.04715.80
5.3.290.0060.04712.80
5.3.280.0070.05014.77
5.3.270.0070.07014.58
5.3.260.0070.06314.69
5.3.250.0070.05014.67
5.3.240.0100.05014.57
5.3.230.0100.04714.58
5.3.220.0070.05014.54
5.3.210.0070.05314.64
5.3.200.0230.04314.79
5.3.190.0130.04314.54
5.3.180.0030.05014.58
5.3.170.0100.05014.47
5.3.160.0170.05314.55
5.3.150.0130.06714.55
5.3.140.0170.03714.71
5.3.130.0070.05314.62
5.3.120.0030.05714.38
5.3.110.0000.08014.45
5.3.100.0030.05314.05
5.3.90.0070.05014.10
5.3.80.0070.04714.04
5.3.70.0000.05314.11
5.3.60.0000.07714.08
5.3.50.0130.04013.96
5.3.40.0070.04713.94
5.3.30.0030.05013.89
5.3.20.0000.05713.78
5.3.10.0030.05013.48
5.3.00.0070.06713.67
5.2.170.0070.05011.21
5.2.160.0030.04311.22
5.2.150.0070.04011.05
5.2.140.0070.04011.13
5.2.130.0030.04011.28
5.2.120.0100.03311.32
5.2.110.0070.03711.01
5.2.100.0030.04011.18
5.2.90.0100.03311.18
5.2.80.0070.06011.26
5.2.70.0170.03711.18
5.2.60.0070.04011.11
5.2.50.0030.04711.00
5.2.40.0030.04011.11
5.2.30.0030.04310.96
5.2.20.0030.04010.93
5.2.10.0030.03711.02
5.2.00.0100.04310.81
5.1.60.0000.03710.07
5.1.50.0030.0339.84
5.1.40.0030.03310.18
5.1.30.0100.03310.34
5.1.20.0030.03710.26
5.1.10.0070.03310.05
5.1.00.0030.03710.11
5.0.50.0070.0378.64
5.0.40.0030.0408.48
5.0.30.0000.0438.42
5.0.20.0000.0278.25
5.0.10.0070.0238.13
5.0.00.0030.0478.32
4.4.90.0000.0305.88
4.4.80.0000.0235.84
4.4.70.0070.0175.74
4.4.60.0030.0235.83
4.4.50.0000.0235.86
4.4.40.0030.0335.81
4.4.30.0000.0235.80
4.4.20.0000.0235.91
4.4.10.0070.0175.89
4.4.00.0000.0335.88
4.3.110.0000.0235.74
4.3.100.0000.0235.82
4.3.90.0070.0175.88
4.3.80.0000.0405.66
4.3.70.0070.0275.73
4.3.60.0030.0205.73
4.3.50.0000.0235.73
4.3.40.0000.0435.71
4.3.30.0030.0205.40
4.3.20.0070.0275.40
4.3.10.0000.0235.40
4.3.00.0130.0236.81

preferences:
45.97 ms | 400 KiB | 5 Q