3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); $x = new stdClass(); var_dump($x->foo->bar); var_dump($x->foo->bar());

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.0140.00018.79
8.3.30.0000.01419.27
8.3.20.0040.00420.25
8.3.10.0080.00021.92
8.3.00.0000.00722.51
8.2.170.0110.00422.96
8.2.160.0030.01019.16
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0030.01326.16
8.2.120.0070.00319.48
8.2.110.0060.00322.01
8.2.100.0090.00319.52
8.2.90.0030.00619.05
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0050.00317.92
8.2.50.0000.00818.07
8.2.40.0070.00018.28
8.2.30.0070.00017.94
8.2.20.0040.00417.63
8.2.10.0040.00417.63
8.2.00.0020.00517.80
8.1.270.0080.00022.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.79
8.1.230.0040.00819.14
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.53
8.1.180.0040.00418.77
8.1.170.0000.00818.53
8.1.160.0000.00721.86
8.1.150.0050.00218.59
8.1.140.0090.00017.43
8.1.130.0030.00317.70
8.1.120.0000.00717.31
8.1.110.0040.00417.36
8.1.100.0040.00417.32
8.1.90.0030.00317.41
8.1.80.0000.00817.41
8.1.70.0070.00017.39
8.1.60.0040.00417.40
8.1.50.0000.00717.52
8.1.40.0040.00417.55
8.1.30.0000.00817.63
8.1.20.0040.00417.57
8.1.10.0000.00717.65
8.1.00.0030.00617.44
8.0.300.0000.00718.77
8.0.290.0040.00417.04
8.0.280.0040.00418.38
8.0.270.0040.00417.13
8.0.260.0030.00316.73
8.0.250.0030.00516.95
8.0.240.0070.00016.97
8.0.230.0000.00816.84
8.0.220.0060.00016.89
8.0.210.0050.00216.91
8.0.200.0040.00416.96
8.0.190.0080.00316.98
8.0.180.0040.00416.88
8.0.170.0030.00616.80
8.0.160.0040.00416.71
8.0.150.0000.00816.88
8.0.140.0000.00916.91
8.0.130.0000.00613.41
8.0.120.0060.00316.86
8.0.110.0030.00516.80
8.0.100.0000.00716.79
8.0.90.0070.00016.83
8.0.80.0130.01016.83
8.0.70.0050.00216.73
8.0.60.0050.00216.77
8.0.50.0070.00016.88
8.0.30.0090.01017.16
8.0.20.0110.01117.40
8.0.10.0040.00417.02
8.0.00.0140.01016.80
7.4.330.0050.00015.04
7.4.320.0060.00016.52
7.4.300.0050.00316.50
7.4.290.0040.00216.64
7.4.280.0050.00316.50
7.4.270.0040.00416.51
7.4.260.0000.00716.61
7.4.250.0000.00816.36
7.4.240.0020.00516.52
7.4.230.0070.00016.48
7.4.220.0030.01416.64
7.4.210.0070.00916.54
7.4.200.0000.00716.45
7.4.190.0030.00316.64
7.4.160.0070.00716.50
7.4.150.0080.00917.40
7.4.140.0130.00817.86
7.4.130.0120.00516.60
7.4.120.0100.00816.63
7.4.110.0090.00916.47
7.4.100.0060.01316.24
7.4.90.0030.01416.40
7.4.80.0090.00919.39
7.4.70.0100.00716.45
7.4.60.0070.01016.57
7.4.50.0000.00516.63
7.4.40.0060.01022.77
7.4.30.0090.01216.48
7.4.00.0030.01115.06
7.3.330.0020.00313.25
7.3.320.0000.00613.11
7.3.310.0000.00716.20
7.3.300.0030.00316.29
7.3.290.0100.00316.27
7.3.280.0060.01116.32
7.3.270.0110.00817.40
7.3.260.0130.01016.52
7.3.250.0090.00916.38
7.3.240.0170.00316.63
7.3.230.0100.00716.46
7.3.210.0100.01016.36
7.3.200.0080.00819.39
7.3.190.0070.01016.46
7.3.180.0090.00616.55
7.3.170.0100.00716.44
7.3.160.0070.00716.43
7.3.120.0090.00914.99
7.2.330.0060.00916.74
7.2.320.0130.01016.31
7.2.310.0090.00916.67
7.2.300.0090.00916.49
7.2.290.0110.00416.62
7.2.60.0070.01016.98
7.2.00.0030.01019.39
7.1.200.0050.00515.56
7.1.100.0040.00817.82
7.1.70.0070.00017.19
7.1.60.0160.01019.82
7.1.50.0100.01016.99
7.1.00.0100.08322.57
7.0.200.0040.00416.73
7.0.140.0000.07322.10
7.0.60.0070.08020.00
7.0.50.0070.03717.80
7.0.40.0070.08319.96
7.0.30.0370.05720.18
7.0.20.0400.06720.01
7.0.10.0100.08720.00
7.0.00.0070.09020.04
5.6.280.0170.06021.11
5.6.210.0130.07320.62
5.6.200.0100.07018.22
5.6.190.0030.08020.69
5.6.180.0530.06720.41
5.6.170.0200.04320.41
5.6.160.0100.04020.61
5.6.150.0000.06318.16
5.6.140.0100.04318.22
5.6.130.0100.04318.10
5.6.120.0030.04321.02
5.6.110.0030.06021.02
5.6.100.0130.08020.95
5.6.90.0070.04021.00
5.6.80.0070.06320.43
5.5.350.0100.08020.42
5.5.340.0030.08718.02
5.5.330.0030.05320.15
5.5.320.0000.04720.50
5.5.310.0430.07020.29
5.5.300.0030.09017.98
5.5.290.0070.08017.98
5.5.280.0030.05320.77
5.5.270.0130.06020.73
5.5.260.0070.07020.86
5.5.250.0070.08020.68
5.5.240.0000.06320.28
5.4.450.0270.04719.57
5.4.440.0400.07019.40
5.4.430.0100.05019.48
5.4.420.0100.05319.48
5.4.410.0170.05019.35
5.4.400.0830.00018.46
5.4.390.0670.00018.57
5.4.380.0270.05318.52
5.4.370.0300.05318.68
5.4.360.0100.06318.73
5.4.350.0270.05018.50
5.4.340.0330.04318.56
5.4.320.0080.04312.45
5.4.310.0030.03912.45
5.4.300.0050.04212.46
5.4.290.0070.03512.45
5.4.280.0090.04212.35
5.4.270.0060.03512.35
5.4.260.0070.05318.94
5.4.250.0170.04318.77
5.4.240.0170.05318.87
5.4.230.0070.05718.63
5.4.220.0130.07319.02
5.4.210.0130.06319.02
5.4.200.0070.06018.77
5.4.190.0170.06018.79
5.4.180.0100.05019.01
5.4.170.0100.05319.01
5.4.160.0100.05019.00
5.4.150.0170.07318.78
5.4.140.0130.06316.50
5.4.130.0100.04716.26
5.4.120.0100.06016.29
5.4.110.0170.04016.25
5.4.100.0130.04316.39
5.4.90.0070.06316.42
5.4.80.0070.05316.27
5.4.70.0100.07016.27
5.4.60.0070.05016.50
5.4.50.0070.05016.39
5.4.40.0100.05016.38
5.4.30.0030.05016.22
5.4.20.0100.04716.48
5.4.10.0100.04716.39
5.4.00.0100.04715.68
5.3.290.0050.03912.80
5.3.280.0070.05014.59
5.3.270.0130.07014.45
5.3.260.0070.05314.50
5.3.250.0030.06014.63
5.3.240.0130.04714.63
5.3.230.0100.05014.43
5.3.220.0130.04314.57
5.3.210.0100.04714.56
5.3.200.0070.04714.45
5.3.190.0170.04014.53
5.3.180.0100.06014.51
5.3.170.0170.04014.43
5.3.160.0100.04314.61
5.3.150.0130.06314.61
5.3.140.0170.04314.44
5.3.130.0100.06014.55
5.3.120.0100.07314.70
5.3.110.0100.05714.38
5.3.100.0000.05713.89
5.3.90.0100.04714.11
5.3.80.0000.06013.85
5.3.70.0100.06014.05

preferences:
35.97 ms | 400 KiB | 5 Q