3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array( "bar1" => "sample", "bar2" => array( array( "bar1" => "sample", "bar2" => "sample", "bar3" => "111111111", "bar4" => "sample", "bar5" => [ "bar6" => "varr", "bar7" => array( -70.111111111111111, -33.111111111111111 ) ] ) ), "bar8" => 11111 ); print json_encode($myArray);

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.140.0140.00717.47
8.4.130.0110.01017.77
8.4.120.0120.00618.79
8.4.110.0100.01020.54
8.4.100.0080.00117.58
8.4.90.0150.00620.53
8.4.80.0030.00520.65
8.4.70.0090.00618.63
8.4.60.0100.01020.49
8.4.50.0060.00419.45
8.4.40.0000.02019.28
8.4.30.0180.00618.46
8.4.20.0130.00618.91
8.4.10.0040.00417.84
8.3.270.0100.01416.71
8.3.260.0030.00516.42
8.3.250.0070.00116.39
8.3.240.0110.00716.50
8.3.230.0140.00516.42
8.3.220.0120.00619.05
8.3.210.0120.00316.63
8.3.200.0040.00516.29
8.3.190.0060.00317.29
8.3.180.0070.00416.50
8.3.170.0090.00918.72
8.3.160.0050.00318.14
8.3.150.0030.00720.54
8.3.140.0140.00418.82
8.3.130.0140.00418.38
8.3.120.0130.00618.52
8.3.110.0080.00020.94
8.3.100.0030.00524.06
8.3.90.0040.00426.77
8.3.80.0050.00519.36
8.3.70.0110.00416.58
8.3.60.0040.01218.18
8.3.50.0160.00016.29
8.3.40.0180.00318.84
8.3.30.0070.00718.54
8.3.20.0080.00024.18
8.3.10.0050.00224.66
8.3.00.0000.00726.16
8.2.290.0120.00716.52
8.2.280.0110.00818.12
8.2.270.0180.00018.70
8.2.260.0030.00619.06
8.2.250.0110.00016.70
8.2.240.0030.00517.27
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00318.88
8.2.190.0100.00316.58
8.2.180.0070.01125.92
8.2.170.0120.00318.99
8.2.160.0170.00022.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00720.89
8.2.110.0140.00722.11
8.2.100.0080.00317.91
8.2.90.0040.00717.63
8.2.80.0030.00518.79
8.2.70.0040.00418.04
8.2.60.0000.00918.16
8.2.50.0030.00518.10
8.2.40.0050.00320.91
8.2.30.0000.00719.11
8.2.20.0050.00318.04
8.2.10.0000.00719.04
8.2.00.0040.00419.23
8.1.330.0100.00916.20
8.1.320.0110.00818.02
8.1.310.0040.00416.55
8.1.300.0130.00317.86
8.1.290.0030.00630.84
8.1.280.0140.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0080.00417.66
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0060.00617.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00318.46
8.1.160.0000.00818.77
8.1.150.0000.00818.80
8.1.140.0030.00618.76
8.1.130.0030.00317.28
8.1.120.0060.00317.31
8.1.110.0000.00717.40
8.1.100.0000.00717.43
8.1.90.0000.00717.35
8.1.80.0050.00517.27
8.1.70.0070.00017.38
8.1.60.0030.00617.49
8.1.50.0030.00517.27
8.1.40.0070.00017.44
8.1.30.0000.00817.54
8.1.20.0000.01017.51
8.1.10.0000.00817.36
8.1.00.0070.00017.41
8.0.300.0070.00020.12
8.0.290.0000.00716.63
8.0.280.0000.00718.43
8.0.270.0030.00316.71
8.0.260.0060.00016.80
8.0.250.0000.00716.95
8.0.240.0030.00516.93
8.0.230.0000.00716.80
8.0.220.0030.00316.85
8.0.210.0000.00716.80
8.0.200.0030.00516.85
8.0.190.0040.00416.89
8.0.180.0040.00416.87
8.0.170.0030.00516.84
8.0.160.0040.00416.83
8.0.150.0040.00416.86
8.0.140.0070.00016.73
8.0.130.0060.00013.23
8.0.120.0000.00716.70
8.0.110.0080.00016.77
8.0.100.0040.00416.70
8.0.90.0000.00716.81
8.0.80.0070.00916.82
8.0.70.0030.00516.63
8.0.60.0040.00416.83
8.0.50.0000.00816.71
8.0.30.0200.00816.75
8.0.20.0190.00916.86
8.0.10.0110.01716.85
8.0.00.0170.01116.93
7.4.330.0000.00615.55
7.4.320.0000.00616.52
7.4.300.0000.00716.42
7.4.290.0050.00216.37
7.4.280.0020.00516.41
7.4.270.0040.00416.44
7.4.260.0070.00016.50
7.4.250.0070.00016.38
7.4.240.0000.00716.36
7.4.230.0040.00416.25
7.4.220.0020.00516.37
7.4.210.0110.00316.56
7.4.200.0030.00316.27
7.4.160.0160.01016.54
7.4.150.0180.00916.49
7.4.140.0170.00916.38
7.4.130.0140.01216.34
7.4.120.0180.01016.37
7.4.110.0180.00716.38
7.4.100.0160.01016.37
7.4.90.0160.00916.44
7.4.80.0160.01016.36
7.4.70.0150.01116.37
7.4.60.0150.00716.40
7.4.50.0160.01016.36
7.4.40.0130.01116.27
7.4.30.0160.00816.34
7.4.20.0170.00716.42
7.4.10.0140.01016.38
7.4.00.0130.00716.33
7.3.330.0030.00316.09
7.3.320.0000.00512.87
7.3.310.0040.00416.12
7.3.300.0000.00716.00
7.3.290.0000.00716.11
7.3.280.0170.00816.12
7.3.270.0160.00816.10
7.3.260.0140.01216.11
7.3.250.0200.00616.10
7.3.240.0170.01116.06
7.3.230.0180.00816.14
7.3.220.0180.00716.07
7.3.210.0170.01216.05
7.3.200.0140.01116.08
7.3.190.0140.01016.03
7.3.180.0160.00916.07
7.3.170.0150.01116.03
7.3.160.0140.00816.05
7.3.150.0170.00916.10
7.3.140.0170.00616.02
7.3.130.0170.00916.03
7.3.120.0100.01316.08
7.3.110.0150.00716.00
7.3.100.0140.01315.98
7.3.90.0230.00516.29
7.3.80.0170.01016.03
7.3.70.0140.01116.23
7.3.60.0140.00816.28
7.3.50.0180.00516.30
7.3.40.0140.01116.32
7.3.30.0160.01016.27
7.3.20.0170.00716.28
7.3.10.0160.00916.13
7.3.00.0170.01016.15

preferences:
30.7 ms | 403 KiB | 5 Q