3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $data = array ( 'tram B' => array ( 0 => array ( 'name' => 'Ile Verte' , 'distance' => 298, 'stationID' => 762, ), 1 => array ( 'name' => 'La Tronche Hôpital' , 'distance' => 425, 'stationID' => 771, ), ), 16 => array ( 0 => array ( 'name' => 'Bastille', 'distance' => 531, 'stationID' => 397 ), 1 => array ( 'name' => 'Xavier Jouvin', 'distance' => 589, 'stationID' => 438, ), ), ); $data['tram B'][1]['name'] = iconv('UTF8', 'ISO-8859-1', $data['tram B'][1]['name']); var_dump( mb_detect_order(), mb_detect_encoding($data['tram B'][1]['name']), mb_detect_encoding($data['tram B'][1]['name'], array('ISO-8859-1', 'UTF-8')), json_encode($data) );

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.20.0060.00317.63
8.4.10.0000.00917.69
8.3.150.0100.00516.93
8.3.140.0110.00719.01
8.3.130.0000.00918.63
8.3.120.0050.00519.15
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00616.63
8.3.70.0110.01416.75
8.3.60.0150.00318.68
8.3.50.0130.00521.98
8.3.40.0110.00718.88
8.3.30.0150.00318.61
8.3.20.0000.00820.57
8.3.10.0000.00821.13
8.3.00.0060.00319.69
8.2.260.0050.00317.05
8.2.250.0080.00017.05
8.2.240.0110.00717.23
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0030.00616.88
8.2.190.0110.00716.88
8.2.180.0120.00625.92
8.2.170.0070.00719.09
8.2.160.0030.01022.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0110.00826.16
8.2.120.0040.00417.88
8.2.110.0080.00020.64
8.2.100.0120.00018.16
8.2.90.0030.00518.33
8.2.80.0040.00418.18
8.2.70.0080.00017.75
8.2.60.0080.00018.16
8.2.50.0060.00318.07
8.2.40.0040.00418.23
8.2.30.0040.00419.45
8.2.20.0070.00017.67
8.2.10.0050.00317.88
8.2.00.0030.00917.82
8.1.310.0090.00920.13
8.1.300.0090.00620.38
8.1.290.0030.00730.84
8.1.280.0140.00025.92
8.1.270.0000.00924.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0140.00017.61
8.1.230.0000.01121.10
8.1.220.0000.00817.74
8.1.210.0000.00819.07
8.1.200.0060.00317.38
8.1.190.0040.00417.78
8.1.180.0060.00318.10
8.1.170.0040.00418.63
8.1.160.0040.00419.00
8.1.150.0040.00418.70
8.1.140.0040.00417.58
8.1.130.0030.00317.92
8.1.120.0000.00717.59
8.1.110.0000.00717.59
8.1.100.0040.00417.48
8.1.90.0040.00417.55
8.1.80.0050.00217.54
8.1.70.0030.00317.59
8.1.60.0060.00317.61
8.1.50.0030.00517.45
8.1.40.0050.00217.68
8.1.30.0000.00817.70
8.1.20.0000.00817.64
8.1.10.0030.00717.79
8.1.00.0040.00417.65
8.0.300.0040.00420.22
8.0.290.0000.00817.28
8.0.280.0030.00318.53
8.0.270.0040.00417.35
8.0.260.0030.00316.98
8.0.250.0070.00017.10
8.0.240.0090.00017.04
8.0.230.0030.00317.19
8.0.220.0030.00316.94
8.0.210.0040.00417.08
8.0.200.0060.00317.13
8.0.190.0000.00717.13
8.0.180.0040.00416.98
8.0.170.0040.00416.99
8.0.160.0000.00716.93
8.0.150.0030.00316.88
8.0.140.0070.00016.98
8.0.130.0050.00013.35
8.0.120.0040.00417.09
8.0.110.0030.00617.17
8.0.100.0050.00516.98
8.0.90.0050.00316.96
8.0.80.0100.00717.18
8.0.70.0000.00916.96
8.0.60.0030.00617.08
8.0.50.0030.00616.93
8.0.30.0100.01017.25
8.0.20.0160.00517.40
8.0.10.0040.00417.10
8.0.00.0080.01517.05
7.4.330.0000.00516.73
7.4.320.0060.00016.52
7.4.300.0000.00616.45
7.4.290.0050.00216.43
7.4.280.0030.00316.62
7.4.270.0040.00416.63
7.4.260.0030.00313.20
7.4.250.0040.00716.67
7.4.240.0040.00416.81
7.4.230.0030.00616.75
7.4.220.0070.01416.74
7.4.210.0080.01316.77
7.4.200.0030.00516.87
7.4.190.0000.00816.94
7.4.160.0070.01116.52
7.4.150.0090.01217.40
7.4.140.0060.01317.86
7.4.130.0060.01316.62
7.4.120.0130.00616.71
7.4.110.0060.02116.64
7.4.100.0060.01416.70
7.4.90.0140.00616.55
7.4.80.0140.01019.39
7.4.70.0160.01516.77
7.4.60.0160.01016.74
7.4.50.0190.00816.64
7.4.40.0210.01019.63
7.4.30.0240.01416.75
7.4.20.0180.01416.53
7.4.10.0180.00916.12
7.4.00.0090.01115.44
7.3.330.0000.00613.08
7.3.320.0060.00013.14
7.3.310.0050.00316.57
7.3.300.0030.00516.36
7.3.290.0060.01216.60
7.3.280.0100.00816.57
7.3.270.0030.01617.40
7.3.260.0110.00918.24
7.3.250.0090.01116.63
7.3.240.0030.01516.95
7.3.230.0120.01216.42
7.3.210.0040.01416.82
7.3.200.0120.00616.93
7.3.190.0120.01616.73
7.3.180.0250.00516.41
7.3.170.0180.01416.81
7.3.160.0190.00916.58
7.3.150.0300.00616.56
7.3.140.0310.00616.53
7.3.130.0250.00115.52
7.3.120.0130.01115.62
7.3.110.0110.01415.56
7.3.100.0100.01215.62
7.3.90.0110.01015.49
7.3.80.0170.00815.55
7.3.70.0090.01415.51
7.3.60.0110.01015.41
7.3.50.0130.00815.52
7.3.40.0110.01015.58
7.3.30.0130.00815.50
7.3.20.0100.01117.27
7.3.10.0070.01217.33
7.3.00.0150.00717.29
7.2.330.0090.00917.01
7.2.320.0070.01116.89
7.2.310.0190.01216.83
7.2.300.0150.01216.98
7.2.290.0100.01816.86
7.2.280.0270.00616.91
7.2.270.0210.01716.59
7.2.260.0150.01516.06
7.2.250.0140.01115.81
7.2.240.0120.01415.75
7.2.230.0130.01015.86
7.2.220.0100.01315.70
7.2.210.0130.00915.83
7.2.200.0150.00715.74
7.2.190.0120.00815.71
7.2.180.0120.01115.73
7.2.170.0120.01015.64
7.2.160.0130.01416.06
7.2.150.0170.00617.99
7.2.140.0100.01617.85
7.2.130.0150.01418.00
7.2.120.0150.01217.73
7.2.110.0150.00917.85
7.2.100.0170.00717.79
7.2.90.0110.01217.87
7.2.80.0150.01117.88
7.2.70.0150.01117.88
7.2.60.0150.00917.48
7.2.50.0150.01217.96
7.2.40.0190.00617.97
7.2.30.0120.01117.96
7.2.20.0150.00817.86
7.2.10.0150.00617.70
7.2.00.0160.00717.55
7.1.330.0100.01016.59
7.1.320.0130.01216.66
7.1.310.0130.00716.56
7.1.300.0130.00716.54
7.1.290.0120.01116.68
7.1.280.0100.00916.52
7.1.270.0110.01116.38
7.1.260.0110.00716.49
7.1.250.0140.00616.77
7.1.240.0100.01116.74
7.1.230.0130.01216.84
7.1.220.0110.01216.83
7.1.210.0130.01016.82
7.1.200.0130.00716.57
7.1.190.0160.00817.06
7.1.180.0110.00916.83
7.1.170.0170.00516.99
7.1.160.0130.01016.93
7.1.150.0120.01116.71
7.1.140.0130.01416.95
7.1.130.0180.00416.68
7.1.120.0140.00917.00
7.1.110.0130.01216.90
7.1.100.0090.01217.35
7.1.90.0130.01116.92
7.1.80.0180.00716.98
7.1.70.0100.01217.04
7.1.60.0120.01017.16
7.1.50.0120.00817.04
7.1.40.0130.01016.94
7.1.30.0110.01016.92
7.1.20.0110.01216.93
7.1.10.0070.01416.96
7.1.00.0120.01016.86
7.0.330.0100.01216.58
7.0.320.0130.01216.57
7.0.310.0170.00616.55
7.0.300.0120.00816.48
7.0.290.0140.01416.58
7.0.280.0120.01216.57
7.0.270.0060.01616.56
7.0.260.0130.00816.42
7.0.250.0130.00716.59
7.0.240.0140.00516.48
7.0.230.0060.01716.42
7.0.220.0190.00516.39
7.0.210.0140.00816.68
7.0.200.0130.00716.57
7.0.190.0110.00816.70
7.0.180.0110.00716.63
7.0.170.0110.00816.47
7.0.160.0070.01416.44
7.0.150.0090.01216.45
7.0.140.0150.00916.45
7.0.130.0090.01316.70
7.0.120.0090.00816.79
7.0.110.0100.01216.64
7.0.100.0090.01116.72
7.0.90.0110.00916.34
7.0.80.0060.01216.55
7.0.70.0090.01016.44
7.0.60.0090.00816.54
7.0.50.0080.00916.62
7.0.40.0120.00615.72
7.0.30.0080.01115.75
7.0.20.0070.01115.74
7.0.10.0100.00915.79
7.0.00.0110.00815.66
5.6.400.0170.00615.54
5.6.390.0100.01315.59
5.6.380.0150.00815.39
5.6.370.0120.01315.49
5.6.360.0130.00915.28
5.6.350.0140.01315.48
5.6.340.0110.01315.40
5.6.330.0150.00615.45
5.6.320.0090.01615.52
5.6.310.0180.00915.37
5.6.300.0080.03217.25
5.6.290.0100.02917.15
5.6.280.0110.02417.30
5.6.270.0060.02417.33
5.6.260.0120.02117.33
5.6.250.0130.03117.29
5.6.240.0120.03317.28
5.6.230.0100.03717.35
5.6.220.0040.02617.26
5.6.210.0090.02217.35
5.6.200.0090.02717.36
5.6.190.0080.03817.29
5.6.180.0110.02217.18
5.6.170.0090.03217.26
5.6.160.0120.02817.29
5.6.150.0090.02717.33
5.6.140.0090.03117.31
5.6.130.0120.02317.30
5.6.120.0080.02317.27
5.6.110.0130.02017.24
5.6.100.0120.01917.23
5.6.90.0090.02117.24
5.6.80.0120.02216.82
5.6.70.0080.02317.01
5.6.60.0060.02217.06
5.6.50.0090.03417.11
5.6.40.0100.01816.93
5.6.30.0080.02317.06
5.6.20.0120.03816.99
5.6.10.0060.02716.94
5.6.00.0090.02717.02
5.5.380.0110.03316.04
5.5.370.0120.01816.04
5.5.360.0080.02315.89
5.5.350.0070.02415.89
5.5.340.0100.03316.15
5.5.330.0110.02216.32
5.5.320.0080.02316.34
5.5.310.0090.02016.17
5.5.300.0130.03016.33
5.5.290.0130.02816.38
5.5.280.0080.02516.25
5.5.270.0090.02316.34
5.5.260.0070.02416.35
5.5.250.0120.02116.27
5.5.240.0100.01816.14
5.5.230.0070.02716.10
5.5.220.0080.02215.99
5.5.210.0080.02615.98
5.5.200.0150.01716.08
5.5.190.0090.01916.08
5.5.180.0100.02616.01
5.5.170.0200.00615.20
5.5.160.0140.02016.09
5.5.150.0070.02415.97
5.5.140.0090.02216.06
5.5.130.0120.03415.95
5.5.120.0100.02016.02
5.5.110.0120.01516.09
5.5.100.0080.01916.01
5.5.90.0090.02616.00
5.5.80.0130.02516.10
5.5.70.0120.02515.88
5.5.60.0120.03616.04
5.5.50.0130.03315.89
5.5.40.0050.02415.77
5.5.30.0110.02816.06
5.5.20.0090.01816.02
5.5.10.0100.02616.11
5.5.00.0080.03116.04
5.4.450.0170.03716.01
5.4.440.0140.02316.14
5.4.430.0080.02815.97
5.4.420.0070.02516.09
5.4.410.0080.03015.77
5.4.400.0070.02215.70
5.4.390.0080.02415.76
5.4.380.0110.02515.82
5.4.370.0090.02115.72
5.4.360.0080.02515.87
5.4.350.0070.02415.89
5.4.340.0050.03315.83
5.4.330.0220.00612.52
5.4.320.0090.03315.80
5.4.310.0140.02015.77
5.4.300.0130.02915.78
5.4.290.0090.03615.86
5.4.280.0070.03015.76
5.4.270.0080.02315.72
5.4.260.0070.02815.80
5.4.250.0080.03015.80
5.4.240.0110.04215.89
5.4.230.0120.02815.67
5.4.220.0150.03915.71
5.4.210.0090.02915.80
5.4.200.0090.02215.59
5.4.190.0070.03915.81
5.4.180.0080.02515.79
5.4.170.0120.04115.72
5.4.160.0110.02115.82
5.4.150.0090.02415.85
5.4.140.0080.02214.60
5.4.130.0110.02914.55
5.4.120.0080.02014.59
5.4.110.0060.04914.50
5.4.100.0100.02314.50
5.4.90.0090.02514.66
5.4.80.0050.02714.54
5.4.70.0110.02014.63
5.4.60.0110.02214.46
5.4.50.0110.03014.60
5.4.40.0110.02314.50
5.4.30.0080.02414.51
5.4.20.0090.02514.58
5.4.10.0090.02714.64
5.4.00.0160.02214.38
5.3.290.0090.04714.78
5.3.280.0060.02714.75
5.3.270.0040.04814.73
5.3.260.0110.02414.92
5.3.250.0110.02414.83
5.3.240.0160.02414.67
5.3.230.0090.03314.75
5.3.220.0120.04514.71
5.3.210.0090.04214.77
5.3.200.0100.02414.80
5.3.190.0090.02514.81
5.3.180.0080.02514.75
5.3.170.0080.02714.89
5.3.160.0100.02614.74
5.3.150.0120.02914.74
5.3.140.0060.02714.79
5.3.130.0070.03114.76
5.3.120.0140.02514.74
5.3.110.0100.02814.74
5.3.100.0140.02714.87
5.3.90.0120.02314.76
5.3.80.0060.02914.68
5.3.70.0080.02714.72
5.3.60.0090.02614.73
5.3.50.0120.02014.67
5.3.40.0120.02814.67
5.3.30.0080.02514.70
5.3.20.0080.02714.64
5.3.10.0100.02614.56
5.3.00.0070.02614.67
5.2.170.0100.02014.38
5.2.160.0090.02314.41
5.2.150.0070.02314.32
5.2.140.0100.02214.31
5.2.130.0080.02114.33
5.2.120.0070.02414.35
5.2.110.0140.01714.37
5.2.100.0100.02614.31
5.2.90.0080.01814.31
5.2.80.0100.01914.27
5.2.70.0040.02614.31
5.2.60.0110.01814.28
5.2.50.0070.02414.23
5.2.40.0050.02214.39
5.2.30.0120.02514.29
5.2.20.0110.02214.26
5.2.10.0120.01914.20
5.2.00.0040.02514.16
5.1.60.0100.01514.10
5.1.50.0080.01814.10
5.1.40.0080.01714.10
5.1.30.0080.01914.11
5.1.20.0070.02314.10
5.1.10.0080.02014.10
5.1.00.0080.01814.10
5.0.50.0060.01714.10
5.0.40.0050.01614.10
5.0.30.0060.02114.10
5.0.20.0080.01314.10
5.0.10.0070.01414.10
5.0.00.0060.02114.10
4.4.90.0030.01114.10
4.4.80.0080.00914.10
4.4.70.0040.00914.10
4.4.60.0080.00714.10
4.4.50.0050.01014.10
4.4.40.0020.01714.10
4.4.30.0020.01314.10
4.4.20.0030.01114.10
4.4.10.0020.01114.10
4.4.00.0050.01414.10
4.3.110.0060.00814.10
4.3.100.0030.01114.10
4.3.90.0020.01614.10
4.3.80.0020.01614.10
4.3.70.0060.00914.10
4.3.60.0070.00914.10
4.3.50.0030.01314.10
4.3.40.0040.01514.10
4.3.30.0110.00814.10
4.3.20.0020.01414.10
4.3.10.0030.01014.10
4.3.00.0060.00614.10

preferences:
20.16 ms | 403 KiB | 5 Q