3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b; public function __construct() { $this->b = new B($this); } } class B { private $a; public function __construct(A $a) { $this->a = $a; } } $a=new A(); var_dump($a); var_export($a); print_r($a);

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.0110.01118.43
8.3.50.0090.00821.99
8.3.40.0120.00618.72
8.3.30.0070.00719.04
8.3.20.0050.00320.27
8.3.10.0080.00022.11
8.3.00.0040.00422.43
8.2.180.0000.01416.75
8.2.170.0120.00322.96
8.2.160.0120.00419.13
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00017.50
8.2.110.0030.00722.30
8.2.100.0100.00319.45
8.2.90.0000.00819.20
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0030.00518.03
8.2.30.0000.00718.05
8.2.20.0040.00417.59
8.2.10.0000.00817.49
8.2.00.0000.00817.48
8.1.280.0140.00325.92
8.1.270.0040.00422.05
8.1.260.0000.00826.35
8.1.250.0100.01028.09
8.1.240.0060.00323.98
8.1.230.0090.00319.02
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0090.00017.53
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.01021.86
8.1.150.0000.00818.51
8.1.140.0040.00417.35
8.1.130.0040.00417.87
8.1.120.0030.00317.29
8.1.110.0040.00417.44
8.1.100.0040.00417.34
8.1.90.0050.00217.37
8.1.80.0070.00017.29
8.1.70.0000.00717.40
8.1.60.0000.00717.43
8.1.50.0060.00317.37
8.1.40.0000.00817.38
8.1.30.0080.00017.61
8.1.20.0000.00817.56
8.1.10.0030.00617.41
8.1.00.0050.00217.28
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0030.00518.33
8.0.270.0080.00017.18
8.0.260.0000.00616.81
8.0.250.0030.00616.98
8.0.240.0030.00516.85
8.0.230.0000.00716.84
8.0.220.0030.00316.88
8.0.210.0030.00316.91
8.0.200.0030.00316.84
8.0.190.0040.00416.95
8.0.180.0040.00416.79
8.0.170.0040.00416.94
8.0.160.0070.00016.77
8.0.150.0030.00516.73
8.0.140.0000.00716.77
8.0.130.0030.00313.40
8.0.120.0040.00416.84
8.0.110.0050.00216.79
8.0.100.0000.00716.93
8.0.90.0040.00416.84
8.0.80.0090.01316.90
8.0.70.0040.00416.71
8.0.60.0030.00616.93
8.0.50.0040.00416.77
8.0.30.0080.01216.94
8.0.20.0100.01217.40
8.0.10.0000.00816.99
8.0.00.0100.01416.78
7.4.330.0050.00015.00
7.4.320.0050.00216.57
7.4.300.0030.00316.58
7.4.290.0000.00716.51
7.4.280.0080.00016.49
7.4.270.0030.00316.60
7.4.260.0030.00316.54
7.4.250.0000.00716.47
7.4.240.0040.00416.47
7.4.230.0070.00016.67
7.4.220.0100.00716.54
7.4.210.0080.00816.63
7.4.200.0040.00416.39
7.4.190.0030.00416.46
7.4.160.0170.00016.39
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0090.00916.58
7.4.120.0090.01016.62
7.4.110.0090.00916.42
7.4.100.0110.00716.66
7.4.90.0000.01916.64
7.4.80.0110.00819.39
7.4.70.0110.00716.44
7.4.60.0030.01416.58
7.4.50.0030.00516.44
7.4.40.0030.01422.77
7.4.30.0070.01116.36
7.4.00.0110.00415.05
7.3.330.0050.00013.37
7.3.320.0050.00013.16
7.3.310.0030.00316.39
7.3.300.0050.00216.22
7.3.290.0150.00616.40
7.3.280.0080.01016.35
7.3.270.0030.01417.40
7.3.260.0050.01116.56
7.3.250.0080.00916.36
7.3.240.0040.01216.33
7.3.230.0160.00016.50
7.3.210.0110.01116.43
7.3.200.0140.00419.39
7.3.190.0070.01016.43
7.3.180.0100.00716.36
7.3.170.0030.01416.37
7.3.160.0160.00316.50
7.3.120.0030.01314.61
7.2.330.0130.00616.48
7.2.320.0120.00416.72
7.2.310.0120.00416.49
7.2.300.0090.00916.54
7.2.290.0100.01016.43
7.2.00.0070.01019.29
7.1.100.0930.01116.00
7.1.70.0000.00917.04
7.1.60.0090.01619.82
7.1.50.0150.00916.90
7.1.00.0070.07022.40
7.0.200.0050.00816.63
7.0.140.0100.07021.95
7.0.60.0070.04319.90
7.0.50.0070.08317.91
7.0.40.0170.07320.11
7.0.30.0570.07020.23
7.0.20.0200.04020.22
7.0.10.0070.08720.33
7.0.00.0000.06020.24
5.6.280.0070.07020.87
5.6.210.0100.07720.67
5.6.200.0100.07718.16
5.6.190.0130.06720.57
5.6.180.0370.07320.48
5.6.170.0100.04720.50
5.6.160.0070.04320.46
5.6.150.0070.03718.27
5.6.140.0030.04718.17
5.6.130.0030.08718.15
5.6.120.0030.04721.15
5.6.110.0100.08021.04
5.6.100.0100.07320.96
5.6.90.0100.08020.99
5.6.80.0000.07320.29
5.6.70.3330.03020.39
5.5.350.0270.07720.54
5.5.340.0070.08317.95
5.5.330.0070.08320.57
5.5.320.0400.07320.32
5.5.310.0370.07020.32
5.5.300.0030.08718.01
5.5.290.0100.08017.95
5.5.280.0100.07020.79
5.5.270.0230.07020.77
5.5.260.0300.06020.88
5.5.250.0100.03720.62
5.5.240.0270.06020.38
5.4.450.0600.05319.45
5.4.440.0700.05319.38
5.4.430.0030.06019.51
5.4.420.0070.06019.21
5.4.410.0100.05719.09
5.4.400.0100.05318.50
5.4.390.0130.06318.59
5.4.380.0170.05018.63
5.4.370.0200.04718.80
5.4.360.0230.04318.71
5.4.350.0100.06018.63
5.4.340.0130.05318.46
5.4.320.0070.03812.50
5.4.310.0090.03512.50
5.4.300.0090.03812.51
5.4.290.0030.04712.50
5.4.280.0050.03912.39
5.4.270.0030.08018.91
5.4.260.0100.06319.14
5.4.250.0070.07018.90
5.4.240.0070.07318.85
5.4.230.0130.06319.00
5.4.220.0130.06019.06
5.4.210.0270.03318.91
5.4.200.0030.05719.09
5.4.190.0130.05018.82
5.4.180.0130.07318.82
5.4.170.0030.06318.98
5.4.160.0170.07018.95
5.4.150.0170.06019.00
5.4.140.0170.05316.66
5.4.130.0130.06316.61
5.4.120.0070.05016.66
5.4.110.0070.08016.69
5.4.100.0070.05716.70
5.4.90.0070.05716.58
5.4.80.0100.06016.68
5.4.70.0200.06016.46
5.4.60.0100.06716.69
5.4.50.0200.06016.55
5.4.40.0230.06016.44
5.4.30.0070.05016.54
5.4.20.0100.05316.68
5.4.10.0130.05716.59
5.4.00.0130.06015.88
5.3.290.0080.04212.80
5.3.280.0170.05014.65
5.3.270.0270.03314.66
5.3.260.0100.05714.80
5.3.250.0130.06714.88
5.3.240.0170.06014.67
5.3.230.0100.05014.68
5.3.220.0100.05314.84
5.3.210.0200.06714.45
5.3.200.0100.06714.75
5.3.190.0070.05714.85
5.3.180.0130.05014.88
5.3.170.0200.04314.53
5.3.160.0100.06314.83
5.3.150.0170.04314.84
5.3.140.0130.06314.73
5.3.130.0130.04714.83
5.3.120.0100.07014.73
5.3.110.0230.05014.67
5.3.100.0200.04714.35
5.3.90.0130.04714.29
5.3.80.0100.04714.21
5.3.70.0100.07014.23
5.3.60.0070.06013.88
5.3.50.0130.04314.13
5.3.40.0000.06014.18
5.3.30.0130.04314.21
5.3.20.0000.06013.88
5.3.10.0170.04313.72
5.3.00.0170.05313.52
5.2.170.0170.04311.44
5.2.160.0100.03711.37
5.2.150.0100.05711.20
5.2.140.0100.03711.45
5.2.130.0030.06011.39
5.2.120.0100.05311.11
5.2.110.0100.05011.30
5.2.100.0100.06011.27
5.2.90.0070.04011.40
5.2.80.0070.04011.27
5.2.70.0070.04711.30
5.2.60.0100.04011.27
5.2.50.0030.05311.33
5.2.40.0100.05011.30
5.2.30.0030.06011.18
5.2.20.0130.03311.00
5.2.10.0070.05010.91
5.2.00.0000.04310.95
5.1.60.0100.03010.20
5.1.50.0000.05310.26
5.1.40.0030.04310.06
5.1.30.0070.04310.38
5.1.20.0030.04310.58
5.1.10.0000.04010.36
5.1.00.0070.04010.34
5.0.50.0070.0408.81
5.0.40.0000.0408.46
5.0.30.0130.0378.44
5.0.20.0100.0308.08
5.0.10.0070.0278.16
5.0.00.0100.0408.26
4.4.90.0030.0337.45
4.4.80.0030.0307.45
4.4.70.0000.0237.45
4.4.60.0000.0337.45
4.4.50.0030.0207.45
4.4.40.0030.0377.45
4.4.30.0130.0207.45
4.4.20.0100.0177.45
4.4.10.0100.0177.45
4.4.00.0000.0377.45
4.3.110.0030.0307.45
4.3.100.0000.0307.45
4.3.90.0070.0207.45
4.3.80.0030.0337.45
4.3.70.0030.0207.45
4.3.60.0100.0137.45
4.3.50.0070.0237.45
4.3.40.0000.0337.45
4.3.30.0070.0237.45
4.3.20.0030.0207.45
4.3.10.0000.0337.45
4.3.00.0030.0277.16

preferences:
60.35 ms | 401 KiB | 5 Q