3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $field; function __construct(){ $this->field = new B; } function __debugInfo(){ return ["should only appear in dump"]; } } class B { private $field; function __construct(){ $this->field = new stdclass; } function __debugInfo(){ return ["should only appear in dump"]; } } $not_debug = (array)new A; var_dump($not_debug); var_export($not_debug);

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.4.120.0030.00620.81
8.4.110.0120.01018.92
8.4.100.0130.00918.79
8.4.90.0100.01020.67
8.4.80.0060.00218.58
8.4.70.0150.00718.12
8.4.60.0110.00918.59
8.4.50.0120.00820.59
8.4.40.0110.00419.21
8.4.30.0040.00717.72
8.4.20.0060.00317.61
8.4.10.0100.00019.38
8.3.250.0050.00317.01
8.3.240.0040.00416.64
8.3.230.0070.00216.57
8.3.220.0030.00518.88
8.3.210.0140.00416.86
8.3.200.0050.00416.74
8.3.190.0030.00518.84
8.3.180.0090.00917.36
8.3.170.0100.01020.69
8.3.160.0110.00818.34
8.3.150.0070.01117.19
8.3.140.0080.00316.53
8.3.130.0090.00018.50
8.3.120.0090.00020.69
8.3.110.0130.00620.94
8.3.100.0030.00618.44
8.3.90.0090.00626.77
8.3.80.0040.00416.75
8.3.70.0110.00418.30
8.3.60.0150.00318.30
8.3.50.0110.01023.00
8.3.40.0060.00918.71
8.3.30.0090.00618.45
8.3.20.0040.00421.81
8.3.10.0040.00420.34
8.3.00.0080.00020.82
8.2.290.0100.00820.45
8.2.280.0140.00518.20
8.2.270.0090.00917.20
8.2.260.0140.00416.41
8.2.250.0040.00418.49
8.2.240.0030.00618.93
8.2.230.0030.00622.58
8.2.220.0040.01224.06
8.2.210.0070.00026.77
8.2.200.0040.00416.50
8.2.190.0030.01416.75
8.2.180.0070.01418.16
8.2.170.0090.00622.96
8.2.160.0100.00320.57
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.83
8.2.110.0080.00322.19
8.2.100.0000.01117.78
8.2.90.0000.00821.13
8.2.80.0040.00417.97
8.2.70.0000.00917.68
8.2.60.0050.00318.09
8.2.50.0080.00018.10
8.2.40.0060.00320.42
8.2.30.0000.00720.85
8.2.20.0040.00417.89
8.2.10.0040.00418.00
8.2.00.0000.00717.59
8.1.330.0120.00822.04
8.1.320.0110.00516.08
8.1.310.0090.00916.27
8.1.300.0120.00317.80
8.1.290.0040.00430.84
8.1.280.0100.01025.92
8.1.270.0040.00423.87
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00022.01
8.1.230.0070.00420.93
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0000.00817.39
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0000.00718.82
8.1.150.0070.00020.36
8.1.140.0020.00519.54
8.1.130.0030.00319.01
8.1.120.0030.00317.33
8.1.110.0030.00617.40
8.1.100.0080.00017.38
8.1.90.0050.00217.47
8.1.80.0040.00417.34
8.1.70.0070.00017.45
8.1.60.0050.00317.58
8.1.50.0050.00317.55
8.1.40.0050.00317.52
8.1.30.0080.00017.55
8.1.20.0030.00617.55
8.1.10.0050.00317.57
8.1.00.0030.00517.46
8.0.300.0040.00419.45
8.0.290.0080.00016.63
8.0.280.0000.00718.38
8.0.270.0030.00317.18
8.0.260.0030.00317.13
8.0.250.0070.00016.79
8.0.240.0040.00416.88
8.0.230.0030.00616.83
8.0.220.0050.00316.72
8.0.210.0060.00016.76
8.0.200.0000.00716.89
8.0.190.0030.00516.83
8.0.180.0040.00416.80
8.0.170.0040.00416.85
8.0.160.0040.00416.79
8.0.150.0040.00416.79
8.0.140.0000.00716.75
8.0.130.0030.00313.25
8.0.120.0000.00816.75
8.0.110.0040.00416.88
8.0.100.0070.00016.91
8.0.90.0040.00416.72
8.0.80.0060.00916.82
8.0.70.0040.00416.72
8.0.60.0000.00716.86
8.0.50.0070.00016.76
8.0.30.0140.00816.77
8.0.20.0090.01017.40
8.0.10.0000.00716.86
8.0.00.0110.00616.61
7.4.330.0000.00515.55
7.4.320.0000.00716.59
7.4.300.0000.00616.51
7.4.290.0030.00616.50
7.4.280.0030.00616.50
7.4.270.0030.00416.61
7.4.260.0000.01116.43
7.4.250.0040.00416.48
7.4.240.0020.00516.38
7.4.230.0000.00716.48
7.4.220.0060.01216.59
7.4.210.0140.00616.43
7.4.200.0080.00016.48
7.4.160.0090.00716.58
7.4.150.0070.01117.40
7.4.140.0150.00317.86
7.4.130.0110.00616.40
7.4.120.0090.01116.53
7.4.110.0110.00516.59
7.4.100.0060.01316.45
7.4.90.0100.00716.41
7.4.80.0050.01119.39
7.4.70.0130.00316.36
7.4.60.0070.01016.44
7.4.50.0070.01016.50
7.4.40.0060.01016.58
7.4.30.0060.01516.43
7.4.00.0030.01315.11
7.3.330.0030.00313.07
7.3.320.0030.00313.37
7.3.310.0070.00016.31
7.3.300.0040.00416.34
7.3.290.0080.00616.29
7.3.280.0090.00816.25
7.3.270.0000.01617.40
7.3.260.0110.00616.35
7.3.250.0050.01316.27
7.3.240.0100.00816.51
7.3.230.0090.01016.33
7.3.210.0060.01116.37
7.3.200.0110.00516.38
7.3.190.0090.01316.38
7.3.180.0160.00016.61
7.3.170.0210.00016.25
7.3.160.0060.00916.31
7.2.330.0090.01216.64
7.2.320.0060.01116.29
7.2.310.0110.00616.45
7.2.300.0140.00716.46
7.2.290.0190.00316.55
7.2.60.0070.00716.79
7.2.00.0000.01219.54
7.1.200.0070.00715.61
7.1.100.0030.00717.80
7.1.70.0030.00717.02
7.1.60.0030.01017.16
7.1.50.0040.00817.04
7.1.40.0000.01516.73
7.1.30.0060.00816.73
7.1.20.0000.01416.73
7.1.10.0030.00916.73
7.1.00.0050.00716.73
7.0.200.0030.00716.79
7.0.190.0000.01016.73
7.0.180.0030.01016.73
7.0.170.0040.00716.73
7.0.160.0000.00716.73
7.0.150.0040.00416.73
7.0.140.0040.00916.73
7.0.130.0050.00516.73
7.0.120.0030.00816.77
7.0.110.0030.00616.73
7.0.100.0060.00316.73
7.0.90.0100.00016.73
7.0.80.0040.00416.73
7.0.70.0000.00916.73
7.0.60.0080.00016.73
7.0.50.0050.00516.73
7.0.40.0000.00816.73
7.0.30.0070.00416.73
7.0.20.0040.00416.73
7.0.10.0000.00916.73
7.0.00.0000.01016.73

preferences:
26.95 ms | 403 KiB | 5 Q