3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'id' => 7, 'title' => 'Pongal', 'start' => '2016-05-16' ), array( 'id' => 7, 'title' => 'Mongok', 'start' => '2016-05-16' ) ); foreach($arr as $key => &$val){ $val['color'] = 'red'; } print_r($arr);

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.0070.00718.31
8.3.120.0060.00320.78
8.3.110.0040.01116.78
8.3.100.0160.00016.64
8.3.90.0100.01026.77
8.3.80.0030.00618.56
8.3.70.0140.00716.50
8.3.60.0100.01016.63
8.3.50.0110.00521.99
8.3.40.0140.00318.51
8.3.30.0150.00220.78
8.3.20.0080.00621.15
8.3.10.0070.00622.43
8.3.00.0130.00220.31
8.2.250.0040.00416.50
8.2.240.0090.00017.06
8.2.230.0100.01020.94
8.2.220.0060.00337.54
8.2.210.0140.00726.77
8.2.200.0040.00418.16
8.2.190.0080.01116.75
8.2.180.0110.01116.63
8.2.170.0070.00722.96
8.2.160.0100.00621.75
8.2.150.0070.00623.57
8.2.140.0050.00723.81
8.2.130.0000.01424.56
8.2.120.0070.00721.94
8.2.110.0070.00522.59
8.2.100.0080.00620.37
8.2.90.0080.00621.07
8.2.80.0100.00520.47
8.2.70.0040.00820.23
8.2.60.0090.00520.29
8.2.50.0060.00820.53
8.2.40.0110.00221.17
8.2.30.0080.00621.13
8.2.20.0040.00920.38
8.2.10.0070.00420.56
8.2.00.0050.00620.47
8.1.300.0000.00917.88
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0030.01123.44
8.1.260.0050.00724.66
8.1.250.0070.00425.53
8.1.240.0120.00621.99
8.1.230.0050.01121.96
8.1.220.0040.00820.37
8.1.210.0120.00320.87
8.1.200.0060.00820.04
8.1.190.0040.00720.16
8.1.180.0080.00520.53
8.1.170.0080.00619.22
8.1.160.0070.00620.99
8.1.150.0050.00920.96
8.1.140.0090.00521.22
8.1.130.0080.00520.14
8.1.120.0090.00419.29
8.1.110.0090.00419.29
8.1.100.0060.00819.29
8.1.90.0060.00418.23
8.1.80.0060.00819.31
8.1.70.0090.00419.26
8.1.60.0110.00319.14
8.1.50.0130.00518.86
8.1.40.0100.00518.37
8.1.30.0120.00418.34
8.1.20.0110.00518.56
8.1.10.0100.00618.23
8.1.00.0090.00518.42
8.0.300.0070.00420.87
8.0.290.0100.00119.79
8.0.280.0060.00420.72
8.0.270.0080.00220.06
8.0.260.0070.00320.73
8.0.250.0070.00418.92
8.0.240.0100.00518.86
8.0.230.0090.00419.50
8.0.220.0040.00919.48
8.0.210.0110.00218.84
8.0.200.0100.00419.52
8.0.190.0080.00618.92
8.0.180.0090.00318.84
8.0.170.0100.00517.87
8.0.160.0090.00417.71
8.0.150.0080.00417.67
8.0.140.0100.00317.64
8.0.130.0060.00617.12
8.0.120.0100.00317.61
8.0.110.0090.00417.39
8.0.100.0100.00317.40
8.0.90.0080.00617.43
8.0.80.0090.00717.38
8.0.70.0120.00417.37
8.0.60.0100.00517.39
8.0.50.0080.00517.42
8.0.30.0080.00917.27
8.0.20.0100.00717.39
8.0.10.0100.00517.44
8.0.00.0100.00517.53
7.4.330.0070.00616.31
7.4.320.0110.00818.64
7.4.300.0140.00618.60
7.4.290.0090.00417.52
7.4.280.0090.00617.41
7.4.270.0100.00817.40
7.4.260.0130.00417.28
7.4.250.0140.00517.24
7.4.240.0140.00617.30
7.4.230.0110.00617.05
7.4.220.0120.00517.18
7.4.210.0140.00217.12
7.4.200.0100.00517.15
7.4.190.0130.00417.27
7.4.180.0120.00417.23
7.4.160.0100.00717.02
7.4.150.0120.00517.05
7.4.140.0110.00517.03
7.4.130.0100.00616.82
7.4.120.0100.00616.75
7.4.110.0090.00716.85
7.4.100.0090.00716.91
7.4.90.0100.00616.82
7.4.80.0100.00716.83
7.4.70.0110.00616.80
7.4.60.0110.00616.74
7.4.50.0100.00816.78
7.4.40.0120.00616.66
7.4.30.0120.00616.74
7.4.20.0110.00716.77
7.4.10.0110.00516.50
7.4.00.0080.00816.50
7.3.330.0130.00516.73
7.3.320.0150.00416.71
7.3.310.0140.00517.04
7.3.300.0130.00416.98
7.3.290.0110.00416.95
7.3.280.0110.00716.77
7.3.270.0120.00516.88
7.3.260.0090.00716.70
7.3.250.0110.00716.73
7.3.240.0100.00716.68
7.3.230.0120.00616.74
7.3.220.0120.00616.71
7.3.210.0110.00616.66
7.3.200.0120.00616.69
7.3.190.0120.00616.64
7.3.180.0100.00716.68
7.3.170.0110.00716.64
7.3.160.0120.00816.65
7.3.150.0100.00816.58
7.3.140.0110.00716.59
7.3.130.0120.00616.32
7.3.120.0120.00716.34
7.3.110.0100.00916.21
7.3.100.0090.00815.99
7.3.90.0100.00816.06
7.3.80.0110.00716.00
7.3.70.0090.00816.00
7.3.60.0100.00715.98
7.3.50.0100.00615.94
7.3.40.0090.00815.94
7.3.30.0100.00615.93
7.3.20.0160.00716.55
7.3.10.0150.00716.48
7.3.00.0150.00816.50
7.2.340.0150.00616.81
7.2.330.0130.00716.76
7.2.320.0140.00616.79
7.2.310.0130.00716.76
7.2.300.0140.00516.71
7.2.290.0120.00916.71
7.2.280.0130.00816.69
7.2.270.0130.00716.70
7.2.260.0110.00816.48
7.2.250.0120.00816.47
7.2.240.0120.00816.36
7.2.230.0120.00716.17
7.2.220.0120.00716.12
7.2.210.0110.00716.12
7.2.200.0120.00816.18
7.2.190.0100.00716.13
7.2.180.0120.00816.08
7.2.170.0100.00916.11
7.2.160.0090.00916.05
7.2.150.0170.00716.69
7.2.140.0150.00816.69
7.2.130.0150.00816.75
7.2.120.0190.00816.73
7.2.110.0190.00716.68
7.2.100.0190.00816.67
7.2.90.0180.00916.67
7.2.80.0210.00716.50
7.2.70.0230.00816.58
7.2.60.0240.00716.57
7.2.50.0200.00716.55
7.2.40.0210.00716.61
7.2.30.0200.00816.69
7.2.20.0180.00816.59
7.2.10.0210.00716.56
7.2.00.0200.00716.61
7.1.330.0150.00816.25
7.1.320.0120.00815.83
7.1.310.0120.00815.83
7.1.300.0120.00715.84
7.1.290.0120.00715.78
7.1.280.0120.00715.75
7.1.270.0180.00715.69
7.1.260.0160.00815.67
7.1.250.0180.00715.65
7.1.240.0220.00715.61
7.1.230.0220.00715.57
7.1.220.0230.00715.56
7.1.210.0200.00615.58
7.1.200.0200.00815.51
7.1.190.0210.00715.48
7.1.180.0210.00715.45
7.1.170.0250.00615.44
7.1.160.0220.00915.49
7.1.150.0210.00715.49
7.1.140.0220.00715.46
7.1.130.0250.00615.46
7.1.120.0230.00715.48
7.1.110.0250.00715.48
7.1.100.0260.00715.51
7.1.90.0200.00715.53
7.1.80.0230.00715.62
7.1.70.0210.00715.51
7.1.60.0200.00917.57
7.1.50.0180.00817.55
7.1.40.0170.00717.53
7.1.30.0180.00717.53
7.1.20.0180.00817.52
7.1.10.0210.00515.48
7.1.00.0250.00715.49
7.0.330.0200.00615.31
7.0.320.0210.00815.33
7.0.310.0240.00715.18
7.0.300.0220.00815.15
7.0.290.0280.00715.14
7.0.280.0220.00715.21
7.0.270.0220.00815.14
7.0.260.0240.00715.19
7.0.250.0260.00715.26
7.0.240.0240.00815.26
7.0.230.0250.00815.27
7.0.220.0200.00815.27
7.0.210.0240.00715.26
7.0.200.0220.00615.31
7.0.190.0200.00715.26
7.0.180.0190.00715.25
7.0.170.0200.00815.30
7.0.160.0210.00815.27
7.0.150.0180.00815.21
7.0.140.0200.00715.26
7.0.130.0170.00615.27
7.0.120.0210.00715.27
7.0.110.0170.00815.24
7.0.100.0210.00715.24
7.0.90.0240.00715.21
7.0.80.0190.00815.21
7.0.70.0160.00715.19
7.0.60.0170.00815.23
7.0.50.0180.00815.21
7.0.40.0170.00715.22
7.0.30.0170.00815.23
7.0.20.0210.00815.19
7.0.10.0180.00715.25
7.0.00.0170.00715.23
5.6.400.0130.00815.60
5.6.390.0130.00815.58
5.6.380.0120.00915.53
5.6.370.0120.00915.56
5.6.360.0130.00915.53
5.6.350.0130.00915.52
5.6.340.0130.00915.53
5.6.330.0130.00815.50
5.6.320.0140.00815.50
5.6.310.0140.00815.56
5.6.300.0140.00915.55
5.6.290.0130.01115.64
5.6.280.0140.01015.57
5.6.270.0130.01015.62
5.6.260.0140.00915.64
5.6.250.0140.01015.59
5.6.240.0140.01015.61
5.6.230.0140.01015.68
5.6.220.0140.01015.65
5.6.210.0140.01015.63
5.6.200.0140.00915.67
5.6.190.0140.01015.65
5.6.180.0150.01015.60
5.6.170.0140.00915.67
5.6.160.0130.01015.65
5.6.150.0150.00815.61
5.6.140.0140.00915.62
5.6.130.0130.01015.68
5.6.120.0140.00915.67
5.6.110.0130.01015.62
5.6.100.0130.01015.65
5.6.90.0140.00915.58
5.6.80.0130.01015.55
5.6.70.0130.00915.54
5.6.60.0120.01015.57
5.6.50.0140.00915.53
5.6.40.0130.01015.53
5.6.30.0140.01015.57
5.6.20.0130.01015.51
5.6.10.0130.01015.55
5.6.00.0130.01015.52
5.5.380.0140.01115.31
5.5.370.0140.01015.26
5.5.360.0150.00915.21
5.5.350.0150.01015.21
5.5.340.0140.00915.21
5.5.330.0130.01115.20
5.5.320.0140.01015.27
5.5.310.0140.00915.23
5.5.300.0150.00915.24
5.5.290.0160.00915.21
5.5.280.0140.01015.24
5.5.270.0130.01015.19
5.5.260.0130.01015.24
5.5.250.0140.01015.23
5.5.240.0160.00815.17
5.5.230.0140.01015.18
5.5.220.0140.00915.20
5.5.210.0130.01015.19
5.5.200.0150.00815.14
5.5.190.0150.00915.16
5.5.180.0140.01015.16
5.5.170.0130.00915.37
5.5.160.0130.01015.13
5.5.150.0150.00815.12
5.5.140.0130.00915.14
5.5.130.0140.01015.11
5.5.120.0140.01015.10
5.5.110.0140.01015.09
5.5.100.0140.01115.18
5.5.90.0140.00915.17
5.5.80.0150.01015.15
5.5.70.0140.01015.13
5.5.60.0130.01015.14
5.5.50.0120.01115.13
5.5.40.0130.01015.10
5.5.30.0130.01115.18
5.5.20.0130.01015.15
5.5.10.0130.00915.13
5.5.00.0140.01015.14

preferences:
67.58 ms | 403 KiB | 5 Q