3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends \stdClass {} $foo = new Foo; $foo->bar = 'bar'; $foo->baz = 42; var_dump($foo); foreach ($foo as $key => $value) { echo("$key: $value").PHP_EOL; } echo json_encode($foo, JSON_PRETTY_PRINT) . PHP_EOL; var_dump((object) json_decode(json_encode($foo)));

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.130.0110.00718.66
8.3.120.0060.00318.99
8.3.110.0040.00418.40
8.3.100.0030.00616.62
8.3.90.0120.00326.77
8.3.80.0060.00316.90
8.3.70.0100.01016.58
8.3.60.0100.00618.31
8.3.50.0030.01316.59
8.3.40.0140.00318.85
8.3.30.0150.00418.67
8.3.20.0000.00724.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.250.0000.00816.51
8.2.240.0060.00318.56
8.2.230.0050.00320.94
8.2.220.0040.00424.06
8.2.210.0070.01126.77
8.2.200.0030.00616.88
8.2.190.0130.00316.63
8.2.180.0120.00325.92
8.2.170.0070.00718.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.38
8.2.110.0070.00321.04
8.2.100.0090.00317.85
8.2.90.0000.00819.23
8.2.80.0060.00318.04
8.2.70.0000.00817.25
8.2.60.0000.00817.93
8.2.50.0040.00418.05
8.2.40.0040.00419.95
8.2.30.0000.00718.05
8.2.20.0040.00418.11
8.2.10.0080.00019.29
8.2.00.0000.00719.30
8.1.300.0060.00318.09
8.1.290.0080.00030.84
8.1.280.0110.00725.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00422.05
8.1.230.0040.00817.70
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.35
8.1.180.0090.00019.11
8.1.170.0030.00618.55
8.1.160.0040.00419.00
8.1.150.0000.00818.90
8.1.140.0040.00418.80
8.1.130.0000.00720.17
8.1.120.0030.00617.36
8.1.110.0060.00317.46
8.1.100.0000.00817.36
8.1.90.0000.00717.48
8.1.80.0070.00317.39
8.1.70.0000.00717.46
8.1.60.0050.00317.66
8.1.50.0040.00417.57
8.1.40.0040.00417.54
8.1.30.0040.00417.68
8.1.20.0000.00817.54
8.1.10.0090.00017.62
8.1.00.0050.00317.48
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00518.49
8.0.270.0000.00717.88
8.0.260.0040.00418.44
8.0.250.0040.00416.98
8.0.240.0000.00716.85
8.0.230.0030.00317.02
8.0.220.0040.00416.87
8.0.210.0030.00316.85
8.0.200.0060.00016.84
8.0.190.0060.00316.94
8.0.180.0030.00516.80
8.0.170.0030.00616.92
8.0.160.0040.00316.90
8.0.150.0070.00016.82
8.0.140.0040.00416.88
8.0.130.0050.00013.31
8.0.120.0000.00716.74
8.0.110.0070.00016.75
8.0.100.0000.00816.93
8.0.90.0000.00716.91
8.0.80.0110.00816.79
8.0.70.0000.00817.00
8.0.60.0000.00816.98
8.0.50.0000.00716.79
8.0.30.0050.01316.87
8.0.20.0120.00416.93
8.0.10.0140.00316.93
8.0.00.0070.01117.09
7.4.330.0040.00015.55
7.4.320.0000.00616.43
7.4.300.0000.00716.41
7.4.290.0000.01016.35
7.4.280.0040.00416.66
7.4.270.0030.00316.59
7.4.260.0000.00513.17
7.4.250.0000.00716.57
7.4.240.0030.00316.64
7.4.230.0070.00016.46
7.4.220.0000.00816.55
7.4.210.0140.00016.57
7.4.200.0080.00016.49
7.4.160.0030.01316.53
7.4.150.0040.01516.61
7.4.140.0070.01416.50
7.4.130.0060.01216.56
7.4.120.0060.01016.47
7.4.110.0030.01516.42
7.4.100.0040.01116.63
7.4.90.0110.00416.41
7.4.80.0130.00716.32
7.4.70.0120.00316.42
7.4.60.0060.00916.50
7.4.50.0090.00616.42
7.4.40.0070.01316.28
7.4.30.0110.00616.55
7.4.20.0090.01216.56
7.4.10.0090.00616.45
7.4.00.0090.01216.48
7.3.330.0030.00316.25
7.3.320.0000.00613.23
7.3.310.0000.00716.18
7.3.300.0040.00416.41
7.3.290.0040.01316.36
7.3.280.0030.01616.32
7.3.270.0070.00716.36
7.3.260.0040.01116.35
7.3.250.0110.00716.40
7.3.240.0030.01216.35
7.3.230.0050.01316.33
7.3.220.0080.00616.20
7.3.210.0060.01316.29
7.3.200.0070.00716.31
7.3.190.0060.01216.25
7.3.180.0080.00816.23
7.3.170.0150.00016.15
7.3.160.0100.00916.27
7.3.150.0110.00416.37
7.3.140.0100.00316.25
7.3.130.0130.00716.20
7.3.120.0100.01016.31
7.3.110.0100.01016.17
7.3.100.0030.01016.20
7.3.90.0060.00816.57
7.3.80.0090.00616.28
7.3.70.0000.01416.32
7.3.60.0030.01016.48
7.3.50.0150.00016.41
7.3.40.0070.00816.48
7.3.30.0060.00916.48
7.3.20.0080.00616.51
7.3.10.0030.01016.43
7.3.00.0110.00416.41

preferences:
26.5 ms | 403 KiB | 5 Q