3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SESSION['survey_ans'] = array(array(1=> "vpoor"), array(10=> "poor" ), array(6=> "average"), array(11=> "good" ), array(12=> "vgood"), array(13=> "good")); foreach($_SESSION['survey_ans'] as $result) { foreach ($result as $key => $value) { echo $key."-".$value."<br />"; } }

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.120.0040.00422.29
8.4.110.0120.00619.05
8.4.100.0100.01017.92
8.4.90.0140.00817.81
8.4.80.0130.00817.93
8.4.70.0140.00617.79
8.4.60.0120.00518.85
8.4.50.0090.01118.96
8.4.40.0100.01019.29
8.4.30.0040.00419.43
8.4.20.0130.00920.21
8.4.10.0000.00917.92
8.3.250.0120.00818.82
8.3.240.0140.00618.99
8.3.230.0050.00316.73
8.3.220.0100.00517.46
8.3.210.0090.00916.75
8.3.200.0060.00316.48
8.3.190.0090.01016.86
8.3.180.0080.00118.46
8.3.170.0000.00918.83
8.3.160.0160.00320.05
8.3.150.0100.01016.73
8.3.140.0050.00318.99
8.3.130.0060.00316.45
8.3.120.0110.00019.03
8.3.110.0090.00620.94
8.3.100.0040.00416.71
8.3.90.0080.00026.77
8.3.80.0030.00617.97
8.3.70.0060.01216.50
8.3.60.0130.00320.18
8.3.50.0140.00317.97
8.3.40.0100.01019.02
8.3.30.0110.00418.75
8.3.20.0040.00421.80
8.3.10.0050.00323.61
8.3.00.0050.00221.71
8.2.290.0030.00520.80
8.2.280.0040.00421.98
8.2.270.0150.00417.23
8.2.260.0060.00318.29
8.2.250.0140.00716.79
8.2.240.0200.00017.19
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0030.00616.63
8.2.190.0130.00716.75
8.2.180.0130.00716.63
8.2.170.0080.00822.96
8.2.160.0100.00318.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0180.00319.48
8.2.110.0050.00520.39
8.2.100.0040.00719.64
8.2.90.0090.00018.03
8.2.80.0030.00617.97
8.2.70.0040.00417.93
8.2.60.0060.00618.29
8.2.50.0050.00518.81
8.2.40.0060.00420.39
8.2.30.0050.00419.45
8.2.20.0040.00618.83
8.2.10.0020.00720.08
8.2.00.0050.00519.47
8.1.330.0080.01116.59
8.1.320.0090.01015.81
8.1.310.0040.00418.41
8.1.300.0030.00716.24
8.1.290.0060.00318.88
8.1.280.0110.00425.92
8.1.270.0040.00418.63
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00323.83
8.1.230.0040.00721.04
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0080.00218.81
8.1.170.0030.00719.05
8.1.160.0070.00219.17
8.1.150.0100.00019.17
8.1.140.0040.00520.79
8.1.130.0070.00219.79
8.1.120.0040.00518.52
8.1.110.0030.00718.43
8.1.100.0030.00718.51
8.1.90.0060.00418.51
8.1.80.0040.00618.48
8.1.70.0060.00418.43
8.1.60.0080.00318.56
8.1.50.0040.00618.21
8.1.40.0110.00318.18
8.1.30.0130.00518.10
8.1.20.0110.00518.00
8.1.10.0120.00517.97
8.1.00.0120.00518.00
8.0.300.0000.00720.16
8.0.290.0060.00316.75
8.0.280.0030.00519.01
8.0.270.0020.00718.18
8.0.260.0040.00418.94
8.0.250.0090.00018.20
8.0.240.0040.00618.19
8.0.230.0050.00418.25
8.0.220.0050.00518.21
8.0.210.0070.00218.21
8.0.200.0020.00618.19
8.0.190.0020.00818.21
8.0.180.0040.00817.72
8.0.170.0040.00717.71
8.0.160.0110.00317.55
8.0.150.0110.00217.49
8.0.140.0080.00517.44
8.0.130.0120.00116.59
8.0.120.0110.00317.54
8.0.110.0120.00217.49
8.0.100.0100.00417.46
8.0.90.0110.00417.49
8.0.80.0120.00617.35
8.0.70.0080.00617.52
8.0.60.0090.00517.50
8.0.50.0110.00317.53
8.0.30.0060.01217.29
8.0.20.0100.00917.40
8.0.10.0140.00517.42
8.0.00.0140.00717.34
7.4.330.0030.00618.18
7.4.320.0060.00518.06
7.4.300.0090.00218.08
7.4.290.0070.00317.50
7.4.280.0110.00617.27
7.4.270.0100.00617.31
7.4.260.0120.00417.33
7.4.250.0120.00517.25
7.4.240.0130.00217.29
7.4.230.0090.00517.27
7.4.220.0120.00417.30
7.4.210.0140.00317.16
7.4.200.0120.00317.20
7.4.190.0110.00717.49
7.4.180.0130.00617.54
7.4.160.0110.00816.85
7.4.150.0130.00517.06
7.4.140.0120.00817.33
7.4.130.0130.00616.93
7.4.120.0150.00516.90
7.4.110.0120.00716.91
7.4.100.0100.00916.93
7.4.90.0130.00716.92
7.4.80.0130.00617.30
7.4.70.0110.00916.95
7.4.60.0120.00816.95
7.4.50.0140.00616.82
7.4.40.0130.00616.92
7.4.30.0120.00616.95
7.4.20.0110.00616.94
7.4.10.0140.00717.02
7.4.00.0100.00816.68
7.3.330.0130.00216.28
7.3.320.0100.00516.29
7.3.310.0130.00217.10
7.3.300.0120.00417.04
7.3.290.0090.00717.11
7.3.280.0110.00716.77
7.3.270.0130.00716.89
7.3.260.0110.00816.69
7.3.250.0160.00416.79
7.3.240.0110.00716.72
7.3.230.0110.00716.81
7.3.220.0140.00716.82
7.3.210.0130.00916.80
7.3.200.0150.00516.85
7.3.190.0110.00916.77
7.3.180.0120.00716.80
7.3.170.0140.00716.83
7.3.160.0130.00616.82
7.3.150.0110.00916.79
7.3.140.0150.00616.82
7.3.130.0140.00816.82
7.3.120.0130.00716.82
7.3.110.0160.00616.75
7.3.100.0130.00516.74
7.3.90.0140.00617.06
7.3.80.0130.00716.89
7.3.70.0120.00716.88
7.3.60.0140.00516.92
7.3.50.0150.00516.94
7.3.40.0100.00716.91
7.3.30.0120.00716.92
7.3.20.0140.00516.93
7.3.10.0120.00616.85
7.3.00.0170.01016.56
7.2.340.0170.00716.90
7.2.330.0170.00716.92
7.2.320.0180.00716.90
7.2.310.0170.00716.93
7.2.300.0180.00616.83
7.2.290.0150.01016.89
7.2.280.0180.00716.94
7.2.270.0190.00616.91
7.2.260.0150.00916.99
7.2.250.0190.00716.93
7.2.240.0160.01016.97
7.2.230.0190.00616.95
7.2.220.0200.00416.98
7.2.210.0190.00716.92
7.2.200.0170.00917.09
7.2.190.0190.00617.02
7.2.180.0190.00616.96
7.2.170.0150.01017.05
7.2.160.0150.00817.04
7.2.150.0170.01017.12
7.2.140.0210.00817.10
7.2.130.0210.00916.77
7.2.120.0220.00716.81
7.2.110.0240.00816.76
7.2.100.0210.00716.79
7.2.90.0230.00916.71
7.2.80.0300.00616.78
7.2.70.0250.00616.81
7.2.60.0220.00716.80
7.2.50.0220.00716.77
7.2.40.0270.00716.80
7.2.30.0240.00816.89
7.2.20.0370.00616.84
7.2.10.0250.00516.86
7.2.00.0280.00616.80
7.1.330.0210.00816.26
7.1.320.0150.00816.16
7.1.310.0200.00716.25
7.1.300.0190.00716.21
7.1.290.0430.00616.22
7.1.280.0170.00716.21
7.1.270.0150.00816.23
7.1.260.0180.01016.16
7.1.250.0220.00615.76
7.1.240.0180.00516.20
7.1.230.0170.00716.18
7.1.220.0200.00716.25
7.1.210.0220.00516.16
7.1.200.0170.00716.18
7.1.190.0240.00416.21
7.1.180.0160.00716.12
7.1.170.0170.00616.17
7.1.160.0190.00816.15
7.1.150.0180.00616.14
7.1.140.0180.00716.12
7.1.130.0220.00416.12
7.1.120.0190.00516.12
7.1.110.0160.00716.14
7.1.100.0170.00616.12
7.1.90.0170.00916.13
7.1.80.0190.00516.16
7.1.70.0190.00516.06
7.1.60.0170.00916.20
7.1.50.0190.00516.25
7.1.40.0210.00616.22
7.1.30.0150.01016.23
7.1.20.0190.00616.10
7.1.10.0160.00716.09
7.1.00.0150.00716.10
7.0.330.0220.00815.53
7.0.320.0170.00515.95
7.0.310.0170.00515.90
7.0.300.0160.00715.90
7.0.290.0200.00615.87
7.0.280.0230.00515.89
7.0.270.0140.00815.90
7.0.260.0180.00515.84
7.0.250.0180.00715.97
7.0.240.0140.00815.99
7.0.230.0140.00815.97
7.0.220.0160.00615.91
7.0.210.0160.00615.89
7.0.200.0170.00615.89
7.0.190.0190.00415.92
7.0.180.0150.00915.91
7.0.170.0180.00415.93
7.0.160.0190.00615.83
7.0.150.0360.00615.85
7.0.140.0180.00415.83
7.0.130.0150.00715.93
7.0.120.0170.00615.93
7.0.110.0160.00615.88
7.0.100.0150.00815.87
7.0.90.0170.00615.85
7.0.80.0170.00615.85
7.0.70.0150.00815.88
7.0.60.0210.00615.91
7.0.50.0170.00615.86
7.0.40.0230.00615.92
7.0.30.0190.00315.97
7.0.20.0190.00515.90
7.0.10.0160.00615.88
7.0.00.0200.00515.85
5.6.400.0120.00916.54
5.6.390.0140.00816.47
5.6.380.0160.00916.20
5.6.370.0170.00616.57
5.6.360.0150.00716.51
5.6.350.0150.00716.53
5.6.340.0130.00916.57
5.6.330.0130.01016.50
5.6.320.0170.00616.49
5.6.310.0150.00816.56
5.6.300.0140.00716.41
5.6.290.0140.00816.59
5.6.280.0170.00516.47
5.6.270.0140.00916.50
5.6.260.0150.00716.52
5.6.250.0140.00816.53
5.6.240.0170.00616.54
5.6.230.0160.00516.57
5.6.220.0170.00716.57
5.6.210.0140.00816.56
5.6.200.0190.00516.65
5.6.190.0130.00916.67
5.6.180.0170.00616.62
5.6.170.0170.00616.63
5.6.160.0150.00816.57
5.6.150.0180.00516.59
5.6.140.0130.01016.62
5.6.130.0140.01016.56
5.6.120.0120.01016.60
5.6.110.0170.00816.57
5.6.100.0170.00516.52
5.6.90.0140.00816.48
5.6.80.0170.00616.50
5.6.70.0190.00516.55
5.6.60.0150.00716.62
5.6.50.0150.00616.52
5.6.40.0150.00816.56
5.6.30.0150.00816.45
5.6.20.0160.00616.45
5.6.10.0140.00816.42
5.6.00.0130.00816.53

preferences:
28.93 ms | 403 KiB | 5 Q