3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = ['district' => 'М. КРИВИЙ РІГ ЦЕНТРАЛЬНОМІСЬКИЙ РАЙОН']; $value['town'] = $value['district']; $value['district'] = substr(strtoupper($value['district']),0, strrpos(strtoupper($value['district']),' РАЙОН')-1); $value['town']= substr(trim($value['district']),strrpos(trim($value['district']),' ')); $value['district'] = substr(trim($value['district']),0,strrpos(trim($value['district']),' ')); print_r($value);

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.60.0090.00616.75
8.3.50.0070.01016.30
8.3.40.0100.01018.84
8.3.30.0070.00718.89
8.3.20.0040.00421.96
8.3.10.0040.00421.76
8.3.00.0040.00419.68
8.2.180.0150.00318.48
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00419.27
8.2.120.0080.00026.35
8.2.110.0090.00020.94
8.2.100.0080.00317.78
8.2.90.0040.00417.97
8.2.80.0040.00419.21
8.2.70.0030.00518.04
8.2.60.0060.00317.50
8.2.50.0000.00818.22
8.2.40.0000.00822.33
8.2.30.0050.00319.32
8.2.20.0000.00718.02
8.2.10.0040.00417.69
8.2.00.0040.00418.05
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0050.00522.45
8.1.230.0110.00020.96
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0080.00017.47
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.50
8.1.160.0070.00018.74
8.1.150.0080.00019.07
8.1.140.0070.00317.63
8.1.130.0000.00720.26
8.1.120.0000.00817.45
8.1.110.0070.00017.44
8.1.100.0070.00017.30
8.1.90.0000.00917.38
8.1.80.0030.00517.38
8.1.70.0050.00317.28
8.1.60.0040.00417.41
8.1.50.0000.00717.38
8.1.40.0000.00817.39
8.1.30.0030.00517.46
8.1.20.0040.00417.46
8.1.10.0000.00717.39
8.1.00.0030.00517.38
8.0.300.0040.00419.90
8.0.290.0060.00316.75
8.0.280.0000.00718.39
8.0.270.0000.00717.14
8.0.260.0040.00416.75
8.0.250.0030.00516.80
8.0.240.0000.00816.88
8.0.230.0030.00316.86
8.0.220.0000.00916.89
8.0.210.0000.00716.88
8.0.200.0030.00316.83
8.0.190.0000.00716.89
8.0.180.0040.00416.82
8.0.170.0030.00616.83
8.0.160.0040.00416.86
8.0.150.0040.00416.77
8.0.140.0070.00016.78
8.0.130.0030.00313.27
8.0.120.0050.00216.84
8.0.110.0040.00416.73
8.0.100.0040.00416.82
8.0.90.0000.00716.66
8.0.80.0060.00916.84
8.0.70.0050.00316.78
8.0.60.0030.00516.81
8.0.50.0040.00416.68
8.0.30.0060.01116.98
8.0.20.0100.01017.40
8.0.10.0070.00017.02
8.0.00.0100.00716.77
7.4.330.0030.00315.55
7.4.320.0040.00416.47
7.4.300.0000.00616.47
7.4.290.0000.00616.34
7.4.280.0050.00316.52
7.4.270.0000.00716.44
7.4.260.0080.00016.38
7.4.250.0030.00616.31
7.4.240.0000.00716.49
7.4.230.0000.00716.35
7.4.220.0040.00416.30
7.4.210.0110.00616.54
7.4.200.0030.00316.33
7.4.160.0090.00816.47
7.4.140.0090.01017.86
7.4.130.0110.01216.53
7.4.120.0090.01016.48
7.4.110.0110.00416.59
7.4.100.0150.00716.39
7.4.90.0090.00916.52
7.4.80.0070.01319.39
7.4.70.0070.01016.48
7.4.60.0090.00616.36
7.4.50.0120.00416.36
7.4.40.0060.01116.50
7.4.00.0070.01014.70
7.3.330.0020.00213.01
7.3.320.0040.00413.02
7.3.310.0000.00716.36
7.3.300.0000.00716.08
7.3.290.0000.00716.14
7.3.280.0070.00716.28
7.3.260.0090.00916.29
7.3.240.0080.01016.42
7.3.230.0110.00916.32
7.3.210.0100.00716.49
7.3.200.0150.00616.51
7.3.190.0090.01216.43
7.3.180.0040.01416.45
7.3.170.0110.00516.27
7.3.160.0110.00416.23
7.3.120.0120.00615.04
7.3.110.0060.01314.92
7.3.100.0040.00714.86
7.3.90.0070.00414.86
7.3.80.0030.00614.59
7.3.70.0030.00814.84
7.3.60.0030.01014.78
7.3.50.0000.00914.57
7.3.40.0040.00814.98
7.3.30.0000.01014.50
7.3.20.0140.00016.54
7.3.10.0000.01216.64
7.3.00.0090.00616.60
7.2.330.0140.00316.61
7.2.320.0030.01316.50
7.2.310.0030.01316.38
7.2.300.0120.00616.69
7.2.290.0130.00716.72
7.2.250.0120.00615.20
7.2.240.0060.01214.87
7.2.230.0030.00915.18
7.2.220.0090.00914.88
7.2.210.0000.01114.70
7.2.200.0040.01215.16
7.2.190.0070.00715.04
7.2.180.0070.00715.05
7.2.170.0000.01014.80
7.2.60.0060.00917.04
7.2.50.0030.00716.79
7.2.30.0100.01617.85
7.2.20.0130.01217.82
7.2.10.0110.01418.07
7.2.00.0150.01217.96
7.1.330.0030.00915.72
7.1.320.0000.01715.50
7.1.310.0110.00315.82
7.1.300.0040.00715.63
7.1.290.0140.00015.71
7.1.280.0000.01415.71
7.1.270.0030.00815.60
7.1.260.0100.00715.57
7.1.200.0050.00515.99
7.1.150.0110.01216.93
7.1.140.0080.01116.57
7.1.130.0100.01216.70
7.1.120.0110.01616.84
7.1.110.0060.01816.41
7.1.100.0230.00916.13
7.1.90.1070.00916.36
7.1.80.0110.01316.32
7.1.70.0110.01415.44
7.1.60.0360.01633.06
7.1.50.0320.01632.88
7.1.40.0420.02232.48
7.1.30.0330.02132.64
7.1.20.0280.01632.91
7.1.10.0100.01014.86
7.1.00.0120.01314.82

preferences:
73.25 ms | 401 KiB | 5 Q