3v4l.org

run code in 300+ PHP versions simultaneously
<?php $assoc = [ 'Stops' => [ ['order_number' => 123, 'whatever' => 'meh'], ['order_number' => 124, 'whatever' => 'meh again'], ] ]; $object = new class() { public $Stops = []; public function __construct() { $this->Stops []= new class() { public $order_number = 123; public $whatever = 'meh'; }; $this->Stops []= new class() { public $order_number = 124; public $whatever = 'meh again'; }; } }; echo json_encode($assoc); echo "\n"; echo json_encode($object);

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.0160.00616.88
8.3.50.0150.00618.16
8.3.40.0140.00318.50
8.3.30.0070.00718.63
8.3.20.0050.00320.33
8.3.10.0040.00421.84
8.3.00.0000.00823.61
8.2.180.0070.01416.75
8.2.170.0110.00322.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.40
8.2.120.0070.00726.35
8.2.110.0070.00320.94
8.2.100.0070.00417.78
8.2.90.0030.00618.06
8.2.80.0070.00018.28
8.2.70.0090.00017.75
8.2.60.0000.00817.63
8.2.50.0040.00418.16
8.2.40.0040.00420.53
8.2.30.0040.00419.33
8.2.20.0000.00718.20
8.2.10.0050.00318.25
8.2.00.0000.00718.11
8.1.280.0110.00425.92
8.1.270.0040.00422.06
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00023.92
8.1.230.0120.00022.74
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0060.00317.36
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0040.00418.82
8.1.150.0040.00420.04
8.1.140.0090.00017.36
8.1.130.0030.00319.04
8.1.120.0030.00317.50
8.1.110.0050.00317.47
8.1.100.0040.00417.43
8.1.90.0050.00317.43
8.1.80.0040.00417.41
8.1.70.0000.00717.41
8.1.60.0040.00417.58
8.1.50.0080.00017.51
8.1.40.0040.00417.50
8.1.30.0040.00417.68
8.1.20.0000.00717.64
8.1.10.0000.00817.58
8.1.00.0000.00817.50
8.0.300.0000.00720.04
8.0.290.0070.00016.58
8.0.280.0030.00518.48
8.0.270.0030.00317.25
8.0.260.0040.00418.35
8.0.250.0000.00716.86
8.0.240.0030.00516.88
8.0.230.0030.00316.81
8.0.220.0030.00316.79
8.0.210.0070.00016.95
8.0.200.0000.00616.81
8.0.190.0050.00316.86
8.0.180.0040.00416.85
8.0.170.0050.00316.96
8.0.160.0070.00016.87
8.0.150.0040.00416.89
8.0.140.0000.00916.86
8.0.130.0000.00513.27
8.0.120.0020.00516.75
8.0.110.0000.00716.89
8.0.100.0050.00216.88
8.0.90.0070.00016.83
8.0.80.0030.01316.88
8.0.70.0070.00016.84
8.0.60.0000.00716.75
8.0.50.0000.00816.94
8.0.30.0100.01016.96
8.0.20.0100.00917.41
8.0.10.0070.00016.92
8.0.00.0030.01616.98
7.4.330.0000.00515.55
7.4.320.0030.00516.42
7.4.300.0000.00616.50
7.4.290.0000.00716.40
7.4.280.0000.00916.48
7.4.270.0030.00316.48
7.4.260.0100.00016.47
7.4.250.0030.00316.55
7.4.240.0030.00316.50
7.4.230.0040.00416.59
7.4.220.0110.00916.59
7.4.210.0000.01416.46
7.4.200.0000.00816.61
7.4.160.0090.00916.43
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0080.01116.52
7.4.120.0110.00916.39
7.4.110.0110.01116.62
7.4.100.0100.00716.61
7.4.90.0220.00016.46
7.4.80.0060.01219.39
7.4.70.0080.00816.66
7.4.60.0130.00316.45
7.4.50.0090.00616.42
7.4.40.0100.01316.57
7.4.30.0050.01416.58
7.4.00.0050.01015.01
7.3.330.0030.00313.22
7.3.320.0000.00613.37
7.3.310.0070.00016.19
7.3.300.0040.00416.30
7.3.290.0110.00416.33
7.3.280.0100.01016.27
7.3.270.0100.00717.40
7.3.260.0110.00616.33
7.3.250.0110.00716.36
7.3.240.0110.00616.35
7.3.230.0120.01216.23
7.3.210.0120.00316.43
7.3.200.0060.01516.51
7.3.190.0090.00616.28
7.3.180.0060.01516.21
7.3.170.0030.01416.43
7.3.160.0120.00316.48
7.3.120.0140.00314.47
7.3.110.0070.01114.82
7.3.100.0120.00314.71
7.3.90.0070.00714.73
7.3.80.0070.01014.59
7.3.70.0110.00414.93
7.3.60.0120.00314.62
7.3.50.0070.00714.80
7.3.40.0030.00614.72
7.3.30.0000.01114.68
7.3.20.0060.00916.70
7.3.10.0040.01116.27
7.3.00.0090.00616.57
7.2.330.0090.00916.83
7.2.320.0120.00616.53
7.2.310.0150.00616.51
7.2.300.0070.01016.44
7.2.290.0070.01016.41
7.2.250.0070.01515.34
7.2.240.0070.01015.24
7.2.230.0000.01414.82
7.2.220.0070.00715.00
7.2.210.0120.00015.26
7.2.200.0070.00615.25
7.2.190.0060.00915.11
7.2.180.0030.01015.11
7.2.170.0120.00315.13
7.2.60.0090.00616.91
7.1.330.0040.01115.91
7.1.320.0070.00315.61
7.1.310.0030.01015.76
7.1.300.0030.00915.81
7.1.290.0070.00715.56
7.1.280.0040.01115.67
7.1.270.0030.00715.62
7.1.260.0060.00615.62
7.1.200.0230.00315.55
7.1.100.3530.01716.07
7.1.90.0160.01316.25
7.1.80.3090.01016.27
7.1.70.0040.01115.23
7.1.60.2260.01333.39
7.1.50.3310.01733.04
7.1.40.3910.00332.50
7.1.30.1700.01032.68
7.1.20.0520.01032.67
7.1.10.0200.01214.78
7.1.00.1060.00914.84
7.0.240.3990.00716.17
7.0.230.0190.01015.77
7.0.220.4100.00615.70
7.0.210.0250.01014.82
7.0.200.0640.00714.68
7.0.190.0590.00314.76
7.0.180.0180.01114.54
7.0.170.0830.00714.38
7.0.160.0940.01214.40
7.0.150.0140.00714.67
7.0.140.0310.00614.71
7.0.130.0090.01014.83
7.0.120.3240.01014.80
7.0.110.3350.01314.39
7.0.100.3230.00314.55
7.0.90.0500.00314.72
7.0.80.0060.01614.81
7.0.70.0350.00814.57
7.0.60.3610.01314.45
7.0.50.0570.00714.60
7.0.40.2760.01614.73
7.0.30.0280.00914.57
7.0.20.3430.00714.68
7.0.10.1280.00714.66
7.0.00.0140.00614.53

preferences:
52.68 ms | 400 KiB | 5 Q