3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'php/127/typescript/12/jquery/120/angular/50'; $list = explode('/', $str); $list_count = count($list); $result = array(); for ($i=0 ; $i<$list_count; $i+=2) { $result[ $list[$i] ] = $list[$i+1]; } print_r($result); ?>

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.10.0160.00319.30
8.3.140.0070.00016.57
8.3.130.0050.00316.48
8.3.120.0130.00320.66
8.3.110.0070.01018.46
8.3.100.0100.00616.58
8.3.90.0110.00426.77
8.3.80.0060.00316.50
8.3.70.0120.00616.58
8.3.60.0030.01218.30
8.3.50.0150.00724.54
8.3.40.0040.01818.52
8.3.30.0130.00318.70
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.260.0040.00418.80
8.2.250.0100.01016.86
8.2.240.0060.00318.75
8.2.230.0050.00320.94
8.2.220.0170.00324.06
8.2.210.0150.00426.77
8.2.200.0030.00616.38
8.2.190.0110.00416.58
8.2.180.0120.00425.92
8.2.170.0140.00319.14
8.2.160.0090.00922.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00420.98
8.2.110.0100.00022.25
8.2.100.0120.00019.64
8.2.90.0040.00419.27
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0090.00018.22
8.2.30.0000.00718.13
8.2.20.0040.00418.13
8.2.10.0070.00019.19
8.2.00.0050.00219.23
8.1.310.0060.01218.16
8.1.300.0120.00316.93
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0060.00323.79
8.1.230.0040.00722.13
8.1.220.0060.00317.77
8.1.210.0060.00318.77
8.1.200.0080.00017.25
8.1.190.0080.00017.25
8.1.180.0030.00618.10
8.1.170.0030.00518.49
8.1.160.0070.00018.81
8.1.150.0000.00718.88
8.1.140.0050.00218.77
8.1.130.0030.00320.23
8.1.120.0040.00417.48
8.1.110.0060.00317.42
8.1.100.0030.00617.44
8.1.90.0000.00817.47
8.1.80.0060.00317.37
8.1.70.0000.00717.49
8.1.60.0000.00817.47
8.1.50.0060.00317.51
8.1.40.0080.00017.44
8.1.30.0040.00417.70
8.1.20.0040.00417.47
8.1.10.0060.00317.43
8.1.00.0020.00517.45
8.0.300.0080.00018.77
8.0.290.0060.00316.75
8.0.280.0030.00318.31
8.0.270.0040.00417.94
8.0.260.0030.00318.26
8.0.250.0030.00316.89
8.0.240.0040.00416.88
8.0.230.0000.00616.95
8.0.220.0000.00716.83
8.0.210.0000.00616.80
8.0.200.0070.00016.95
8.0.190.0030.00316.93
8.0.180.0020.00516.89
8.0.170.0000.00816.89
8.0.160.0030.00416.79
8.0.150.0040.00416.80
8.0.140.0080.00216.88
8.0.130.0000.00513.32
8.0.120.0030.00516.83
8.0.110.0030.00516.78
8.0.100.0040.00416.74
8.0.90.0050.00316.86
8.0.80.0120.00616.86
8.0.70.0070.00016.82
8.0.60.0000.00716.79
8.0.50.0050.00216.68
8.0.30.0060.01017.00
8.0.20.0090.00917.04
8.0.10.0040.00417.03
8.0.00.0060.01416.72
7.4.330.0020.00215.55
7.4.320.0070.00016.49
7.4.300.0040.00416.49
7.4.290.0070.00016.60
7.4.280.0000.00816.61
7.4.270.0040.00416.44
7.4.260.0000.00513.20
7.4.250.0040.00416.61
7.4.240.0030.00316.59
7.4.230.0050.00316.34
7.4.220.0050.00216.64
7.4.210.0090.00716.67
7.4.200.0050.00216.71
7.4.130.0060.01116.54
7.4.120.0090.01316.29
7.4.110.0110.00716.48
7.4.100.0120.00616.58
7.4.90.0110.00716.47
7.4.80.0060.01019.39
7.4.70.0130.00616.19
7.4.60.0090.00816.18
7.4.50.0070.01216.40
7.4.40.0090.00916.33
7.4.30.0050.01316.29
7.4.20.0060.01116.45
7.4.10.0070.01216.50
7.4.00.0100.00616.45
7.3.330.0070.00016.46
7.3.320.0050.00013.25
7.3.310.0030.00316.41
7.3.300.0040.00416.14
7.3.290.0070.00816.35
7.3.280.0060.00916.32
7.3.260.0160.00616.63
7.3.240.0100.00916.49
7.3.230.0090.00916.55
7.3.210.0070.01016.61
7.3.200.0090.00916.30
7.3.190.0050.01116.36
7.3.180.0110.00516.31
7.3.170.0050.01216.32
7.3.160.0090.01016.45
7.3.150.0060.01316.47
7.3.140.0070.01016.56
7.3.130.0070.00916.38
7.3.120.0100.01016.47
7.3.110.0080.01016.27
7.3.100.0080.00816.36
7.3.90.0080.01116.54
7.3.80.0140.00516.40
7.3.70.0110.01116.35
7.3.60.0030.01316.23
7.3.50.0060.01116.19
7.3.40.0060.01016.45
7.3.30.0100.00616.27
7.3.20.0120.01017.29
7.3.10.0070.01118.13
7.3.00.0030.01418.05
7.2.330.0070.01016.74
7.2.310.0060.01416.81
7.2.300.0090.01016.59
7.2.290.0120.00716.73
7.2.280.0090.01216.59
7.2.270.0110.00516.66
7.2.260.0080.00916.53
7.2.250.0130.00516.76
7.2.240.0080.00816.46
7.2.230.0070.01316.66
7.2.220.0120.00716.67
7.2.210.0080.01216.61
7.2.200.0070.01216.72
7.2.190.0100.00716.51
7.2.180.0080.00916.61
7.2.170.0100.00716.53
7.2.160.0050.01116.46
7.2.150.0100.01218.51
7.2.140.0030.01518.28
7.2.130.0130.00618.37
7.2.120.0060.01118.53
7.2.110.0080.01018.41
7.2.100.0090.00918.32
7.2.90.0120.00518.42
7.2.80.0140.00418.47
7.2.70.0120.00618.44
7.2.60.0100.00718.37
7.2.50.0090.00818.51
7.2.40.0100.00918.49
7.2.30.0080.01018.46
7.2.20.0070.01018.41
7.2.10.0070.01218.43
7.2.00.0070.01218.55

preferences:
28.94 ms | 403 KiB | 5 Q