3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array('bar', 'baz'); $foo = (object)$foo; var_dump($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.60.0120.00318.68
8.3.50.0050.01421.02
8.3.40.0070.00718.71
8.3.30.0140.00319.04
8.3.20.0030.00620.21
8.3.10.0080.00022.05
8.3.00.0050.00322.43
8.2.180.0150.00016.50
8.2.170.0090.00622.96
8.2.160.0070.01019.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.23
8.2.110.0050.00522.25
8.2.100.0040.00717.78
8.2.90.0040.00417.75
8.2.80.0000.00917.97
8.2.70.0030.00517.55
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0060.00320.42
8.2.30.0030.00517.98
8.2.20.0040.00417.46
8.2.10.0000.00717.68
8.2.00.0050.00317.73
8.1.280.0110.00425.92
8.1.270.0070.00022.19
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00023.90
8.1.230.0070.00418.97
8.1.220.0060.00317.77
8.1.210.0090.00018.77
8.1.200.0090.00017.23
8.1.190.0040.00417.13
8.1.180.0080.00018.10
8.1.170.0030.00618.61
8.1.160.0070.00022.08
8.1.150.0040.00418.68
8.1.140.0060.00317.38
8.1.130.0000.00717.79
8.1.120.0070.00017.44
8.1.110.0030.00517.29
8.1.100.0070.00017.46
8.1.90.0040.00417.36
8.1.80.0000.00717.39
8.1.70.0040.00417.40
8.1.60.0040.00417.55
8.1.50.0030.00517.41
8.1.40.0090.00017.49
8.1.30.0000.00817.60
8.1.20.0040.00417.57
8.1.10.0040.00417.48
8.1.00.0000.00717.27
8.0.300.0080.00019.83
8.0.290.0000.00816.63
8.0.280.0000.00718.32
8.0.270.0030.00317.06
8.0.260.0030.00318.38
8.0.250.0030.00316.85
8.0.240.0070.00016.97
8.0.230.0030.00316.89
8.0.220.0030.00316.79
8.0.210.0060.00016.92
8.0.200.0030.00316.90
8.0.190.0000.00716.93
8.0.180.0060.00316.80
8.0.170.0030.00516.87
8.0.160.0040.00416.94
8.0.150.0100.00016.83
8.0.140.0000.00716.88
8.0.130.0000.00513.30
8.0.120.0040.00416.88
8.0.110.0050.00216.89
8.0.100.0000.00716.91
8.0.90.0070.00016.70
8.0.80.0030.01816.84
8.0.70.0030.00516.83
8.0.60.0080.00016.83
8.0.50.0070.00016.89
8.0.30.0080.01117.08
8.0.20.0080.01017.40
8.0.10.0020.00516.87
8.0.00.0090.01116.68
7.4.330.0000.00515.09
7.4.320.0000.00716.64
7.4.300.0000.00616.63
7.4.290.0000.00816.48
7.4.280.0000.00616.43
7.4.270.0000.00716.45
7.4.260.0070.00016.48
7.4.250.0000.00716.59
7.4.240.0000.00716.50
7.4.230.0030.00316.36
7.4.220.0050.01016.50
7.4.210.0060.01016.58
7.4.200.0080.00016.49
7.4.190.0000.00716.68
7.4.160.0140.00716.45
7.4.150.0170.00317.40
7.4.140.0090.01017.86
7.4.130.0080.00916.49
7.4.120.0150.00616.49
7.4.110.0090.01316.46
7.4.100.0180.00616.68
7.4.90.0110.00716.40
7.4.80.0150.00919.39
7.4.70.0060.01816.38
7.4.60.0080.01016.48
7.4.50.0000.00916.56
7.4.40.0100.00922.77
7.4.30.0040.01316.47
7.4.00.0050.01214.71
7.3.330.0000.00513.10
7.3.320.0030.00312.98
7.3.310.0000.00716.39
7.3.300.0060.00016.26
7.3.290.0060.01316.29
7.3.280.0090.01016.24
7.3.270.0200.00317.40
7.3.260.0070.01016.28
7.3.250.0100.00716.22
7.3.240.0080.00816.26
7.3.230.0120.00616.39
7.3.210.0090.00916.45
7.3.200.0100.01319.39
7.3.190.0070.01016.43
7.3.180.0150.00016.34
7.3.170.0090.00616.27
7.3.160.0090.00816.30
7.3.120.0100.00514.79
7.3.110.0030.00714.83
7.3.100.0040.00814.52
7.3.90.0000.00914.82
7.3.80.0100.00014.79
7.3.70.0070.00714.79
7.3.60.0030.01214.70
7.3.50.0060.00914.70
7.3.40.0070.00714.75
7.3.30.0100.00714.44
7.3.20.0130.00316.66
7.3.10.0100.00316.59
7.3.00.0090.00316.46
7.2.330.0100.01016.31
7.2.320.0070.01716.36
7.2.310.0130.00716.67
7.2.300.0100.01016.24
7.2.290.0030.01316.46
7.2.250.0060.01415.18
7.2.240.0100.01015.05
7.2.230.0000.01314.77
7.2.220.0060.00915.13
7.2.210.0070.01014.76
7.2.200.0090.00614.71
7.2.190.0060.01015.18
7.2.180.0030.01014.97
7.2.170.0060.00914.65
7.2.00.0070.00719.46
7.1.330.0030.01115.89
7.1.320.0030.01015.68
7.1.310.0060.00915.86
7.1.300.0070.01015.77
7.1.290.0060.00315.74
7.1.280.0020.01315.80
7.1.270.0040.00415.68
7.1.260.0060.00615.76
7.1.100.0060.00618.23
7.1.70.0080.00317.06
7.1.60.0100.01419.82
7.1.50.0040.01516.72
7.1.00.0100.07722.48
7.0.200.0040.00416.46
7.0.140.0030.07322.12
7.0.60.0030.08721.61
7.0.50.0070.08017.85
7.0.40.0170.08020.16
7.0.30.0330.06020.17
7.0.20.0270.08720.00
7.0.10.0270.08020.04
7.0.00.0100.04720.33
5.6.280.0030.07021.14
5.6.210.0000.08720.54
5.6.200.0000.05318.09
5.6.190.0030.07320.27
5.6.180.3170.04020.64
5.6.170.0330.07720.47
5.6.160.0070.05020.50
5.6.150.0030.09018.07
5.6.140.0100.04018.07
5.6.130.0070.04718.20
5.6.120.0030.04320.99
5.6.110.0070.08320.97
5.6.100.0130.07720.98
5.6.90.0070.07720.96
5.6.80.0000.04320.52
5.5.350.0230.06720.42
5.5.340.0130.07718.02
5.5.330.0070.04320.45
5.5.320.0230.04020.29
5.5.310.0200.05020.28
5.5.300.0030.08318.02
5.5.290.0100.03717.91
5.5.280.0100.08320.64
5.5.270.0030.06020.86
5.5.260.0070.08720.87
5.5.250.0030.06720.68
5.5.240.0070.07720.18
5.4.450.0230.04319.39
5.4.440.0270.06319.54
5.4.430.0270.05719.11
5.4.420.0300.07319.38
5.4.410.0270.05719.45
5.4.400.0200.07719.09
5.4.390.0230.04019.10
5.4.380.0300.06719.21
5.4.370.0300.05019.13
5.4.360.0300.04718.88
5.4.350.0270.06718.79
5.4.340.0230.05019.09
5.4.320.0330.06719.07
5.4.310.0270.06318.88
5.4.300.0200.06319.15
5.4.290.0300.05319.09
5.4.280.0230.05018.95
5.4.270.0600.02319.13
5.4.260.0300.04319.09
5.4.250.0300.06319.25
5.4.240.0270.06719.15
5.4.230.0270.03319.08
5.4.220.0230.06019.05
5.4.210.0330.06319.23
5.4.200.0300.07019.25
5.4.190.0170.04319.23
5.4.180.0300.04319.23
5.4.170.0270.07319.05
5.4.160.0300.06019.07
5.4.150.0230.08019.22
5.4.140.0230.07016.55
5.4.130.0300.06016.32
5.4.120.0270.07016.44
5.4.110.0170.04716.46
5.4.100.0270.07016.47
5.4.90.0200.07316.38
5.4.80.0230.06716.46
5.4.70.0200.07316.19
5.4.60.0230.06016.25
5.4.50.0300.05016.38
5.4.40.0200.07316.36
5.4.30.0230.04716.29
5.4.20.0200.06316.31
5.4.10.0200.03716.45
5.4.00.0270.07315.89
5.3.290.0300.07314.49
5.3.280.0270.04314.43
5.3.270.0170.08314.55
5.3.260.0330.05014.46
5.3.250.0170.05314.66
5.3.240.0200.06014.43
5.3.230.0230.04014.64
5.3.220.0230.05714.61
5.3.210.0270.05014.41
5.3.200.0300.04314.59
5.3.190.0270.04014.44
5.3.180.0270.03714.39
5.3.170.0230.05014.35
5.3.160.0230.07014.42
5.3.150.0370.05714.51
5.3.140.0330.06014.42
5.3.130.0200.04014.38
5.3.120.0270.05314.37
5.3.110.0330.05014.50
5.3.100.0200.04314.13
5.3.90.0170.03713.89
5.3.80.0170.04013.86
5.3.70.0100.05014.11
5.3.60.0170.03713.85
5.3.50.0200.06713.89
5.3.40.0230.04313.82
5.3.30.0270.06713.89
5.3.20.0370.05313.63
5.3.10.0300.06713.49
5.3.00.0270.03313.48
5.2.170.0200.06011.06
5.2.160.0230.06011.05
5.2.150.0130.03711.00
5.2.140.0300.03011.03
5.2.130.0200.03010.96
5.2.120.0270.06010.99
5.2.110.0370.04010.96
5.2.100.0200.04310.99
5.2.90.0170.03310.93
5.2.80.0200.02711.03
5.2.70.0170.02710.91
5.2.60.0230.03711.22
5.2.50.0230.02711.07
5.2.40.0230.03310.84
5.2.30.0170.04310.98
5.2.20.0170.03010.86
5.2.10.0200.03310.83
5.2.00.0170.03710.73
5.1.60.0200.04710.01
5.1.50.0100.03710.01
5.1.40.0200.02710.01
5.1.30.0130.06010.43
5.1.20.0130.05710.25
5.1.10.0230.04710.01
5.1.00.0170.02710.14
5.0.50.0100.02310.01
5.0.40.0070.03010.01
5.0.30.0070.06310.01
5.0.20.0100.02010.01
5.0.10.0070.03310.01
5.0.00.0200.05710.01
4.4.90.0030.02010.01
4.4.80.0100.01310.01
4.4.70.0130.02310.01
4.4.60.0130.01710.01
4.4.50.0100.03310.01
4.4.40.0070.04310.01
4.4.30.0100.01310.01
4.4.20.0100.02010.01
4.4.10.0070.02010.01
4.4.00.0100.02310.01
4.3.110.0130.01310.01
4.3.100.0070.01710.01
4.3.90.0100.03310.01
4.3.80.0100.03010.01
4.3.70.0070.02010.01
4.3.60.0170.01710.01
4.3.50.0130.03310.01
4.3.40.0100.02710.01
4.3.30.0100.03010.01
4.3.20.0070.04010.01
4.3.10.0070.02310.01
4.3.00.0030.02010.01

preferences:
53.89 ms | 400 KiB | 5 Q