3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info = "autore|||||titolo|||||album|||||2.38|||||1.59.59"; $infos = explode('|||||',$info); if(isset($infos['0'])){$at=$infos['0'];}else{$at="";} if(isset($infos['1'])){$tt=$infos['1'];}else{$tt="";} if(isset($infos['2'])){$aa=$infos['2'];}else{$aa="";} if(isset($infos['3']) && is_numeric($infos['3'])){$te=$infos['3'];}else{$te="0.0";} if(isset($infos['4']) && is_numeric($infos['4'])){$td=$infos['4'];}else{$td="0.0";} //Calculate times $te_ex = array_reverse(explode('.', $te));// per le tracce superiori a 1 ora e fino alle 23 ore 59 minuti e 59 secondi $td_ex = array_reverse(explode('.', $td));// per le tracce superiori a 1 ora e fino alle 23 ore 59 minuti e 59 secondi if(isset($te_ex[1])) {//ricavo -ore minuti e secondi- se i dati ricavati sono validi (ATTENZIONE: in fondo al brano "Sconosciuto") if(isset($td_ex[2])) {$tdh = $td_ex[2] * 3600;} else {$tdh = 0;} if(isset($te_ex[2])) {$teh = $te_ex[2] * 3600;} else {$teh = 0;} $tesec = (($teh) + ($te_ex[1] * 60) + $te_ex[0]); $tdsec = (($tdh) + ($td_ex[1] * 60) + $td_ex[0]); $trsec = $tdsec-$tesec; //tempo restante al termine della canzone }else{ $tesec = $tdsec = $trsec = 0; } echo $info."<br />"; echo $te.": "; print_r($te_ex); echo '<br />'.$td.": "; print_r($td_ex); ?>

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.0070.01418.39
8.3.50.0140.00521.21
8.3.40.0090.00618.68
8.3.30.0130.00320.17
8.3.20.0000.00820.20
8.3.10.0040.00422.09
8.3.00.0060.00322.18
8.2.180.0070.00716.38
8.2.170.0100.00622.96
8.2.160.0130.00022.16
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0080.00020.70
8.2.110.0000.00820.37
8.2.100.0060.00617.77
8.2.90.0000.00819.34
8.2.80.0070.00019.21
8.2.70.0040.00817.75
8.2.60.0030.00518.03
8.2.50.0000.00818.07
8.2.40.0060.00618.07
8.2.30.0030.00519.46
8.2.20.0000.00717.71
8.2.10.0040.00417.83
8.2.00.0070.00017.77
8.1.280.0080.00625.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.84
8.1.230.0070.00418.97
8.1.220.0050.00317.79
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.41
8.1.180.0000.00918.10
8.1.170.0060.00318.56
8.1.160.0040.00418.92
8.1.150.0040.00418.68
8.1.140.0040.00417.48
8.1.130.0030.00317.78
8.1.120.0000.00717.41
8.1.110.0040.00417.40
8.1.100.0000.00717.51
8.1.90.0040.00417.52
8.1.80.0040.00417.47
8.1.70.0000.00717.39
8.1.60.0030.00617.61
8.1.50.0000.00817.52
8.1.40.0040.00417.54
8.1.30.0060.00317.70
8.1.20.0080.00017.72
8.1.10.0050.00217.52
8.1.00.0000.00817.59
8.0.300.0090.00018.77
8.0.290.0050.00317.05
8.0.280.0030.00318.39
8.0.270.0000.00817.29
8.0.260.0040.00216.91
8.0.250.0000.00717.10
8.0.240.0060.00317.06
8.0.230.0000.00817.05
8.0.220.0040.00416.99
8.0.210.0000.00716.98
8.0.200.0050.00217.07
8.0.190.0030.00617.00
8.0.180.0000.00716.99
8.0.170.0000.00816.94
8.0.160.0000.00817.08
8.0.150.0000.00816.92
8.0.140.0070.00016.95
8.0.130.0000.00513.35
8.0.120.0050.00316.91
8.0.110.0050.00316.92
8.0.100.0070.00017.03
8.0.90.0050.00217.05
8.0.80.0060.00917.04
8.0.70.0040.00417.05
8.0.60.0030.00616.97
8.0.50.0000.00717.00
8.0.30.0120.00917.25
8.0.20.0080.01117.40
8.0.10.0070.00017.18
8.0.00.0070.01216.85
7.4.330.0000.00614.98
7.4.320.0000.00716.55
7.4.300.0030.00316.50
7.4.290.0070.00016.64
7.4.280.0030.00316.45
7.4.270.0060.00316.65
7.4.260.0030.00313.32
7.4.250.0000.00716.64
7.4.240.0000.00716.56
7.4.230.0000.00716.42
7.4.220.0130.01316.48
7.4.210.0100.00616.54
7.4.200.0000.00816.34
7.4.190.0030.00316.58
7.4.160.0030.01316.47
7.4.150.0090.01017.40
7.4.140.0110.00617.86
7.4.130.0090.00816.53
7.4.120.0140.00816.53
7.4.110.0120.00616.54
7.4.100.0060.01516.52
7.4.90.0100.00716.64
7.4.80.0110.00819.39
7.4.70.0110.00616.52
7.4.60.0030.01416.48
7.4.50.0000.00816.38
7.4.40.0090.00622.77
7.4.30.0070.01016.39
7.4.10.0060.01315.07
7.4.00.0050.01215.04
7.3.330.0030.00313.10
7.3.320.0000.00613.27
7.3.310.0000.00716.29
7.3.300.0070.00016.40
7.3.290.0070.00716.26
7.3.280.0090.00616.22
7.3.270.0110.00717.40
7.3.260.0120.00716.57
7.3.250.0150.00316.29
7.3.240.0160.00616.67
7.3.230.0110.00716.45
7.3.210.0040.01216.31
7.3.200.0100.01019.39
7.3.190.0050.01416.63
7.3.180.0120.00816.29
7.3.170.0090.00616.47
7.3.160.0090.00616.58
7.3.130.0080.01114.76
7.3.120.0050.01214.63
7.3.110.0120.00014.84
7.3.100.0060.00614.93
7.3.90.0070.00714.63
7.3.80.0070.00715.19
7.3.70.0060.00914.91
7.3.60.0100.00714.90
7.3.50.0090.00914.89
7.3.40.0070.01014.90
7.3.30.0070.00314.79
7.3.20.0060.01016.69
7.3.10.0040.01116.53
7.3.00.0000.01316.84
7.2.330.0070.01116.47
7.2.320.0030.01316.81
7.2.310.0090.00916.78
7.2.300.0060.01816.71
7.2.290.0110.00916.68
7.2.260.0140.00314.89
7.2.250.0030.01514.89
7.2.240.0070.00715.13
7.2.230.0000.01515.11
7.2.220.0050.00514.88
7.2.210.0090.00315.38
7.2.200.0030.00714.80
7.2.190.0120.00614.83
7.2.180.0060.01315.27
7.2.170.0040.01415.18
7.2.160.0040.00815.15
7.2.150.0070.00416.99
7.2.140.0080.01216.70
7.2.130.0110.00317.02
7.2.120.0060.01016.79
7.2.110.0090.00616.68
7.2.100.0120.00316.76
7.2.90.0080.00317.17
7.2.80.0000.01717.17
7.2.70.0040.01117.08
7.2.60.0040.00816.86
7.2.50.0040.00516.99
7.2.40.0030.01016.74
7.2.30.0070.00716.77
7.2.20.0030.01316.73
7.2.10.0080.00517.07
7.2.00.0050.00917.95
7.1.330.0030.01215.98
7.1.320.0080.00816.08
7.1.310.0030.00915.95
7.1.300.0060.01015.85
7.1.290.0120.00315.52
7.1.280.0060.00315.88
7.1.270.0080.00415.73
7.1.260.0110.00716.00
7.1.250.0110.00315.87
7.1.240.0090.00615.86
7.1.230.0040.00715.87
7.1.220.0050.00315.91
7.1.210.0080.00415.74
7.1.200.0100.00515.85
7.1.190.0040.00815.69
7.1.180.0090.00615.82
7.1.170.0060.00315.97
7.1.160.0030.00915.93
7.1.150.0030.00715.78
7.1.140.0040.01215.86
7.1.130.0040.01115.68
7.1.120.0060.00915.77
7.1.110.0060.00915.80
7.1.100.0060.00817.02
7.1.90.0030.01015.83
7.1.80.0000.01316.00
7.1.70.0020.00816.43
7.1.60.0080.00817.36
7.1.50.0160.01025.40
7.1.40.0040.01115.65
7.1.30.0030.00715.57
7.1.20.0080.00815.98
7.1.10.0060.00915.83
7.1.00.0060.01819.04
7.0.330.0040.00415.40
7.0.320.0050.00315.42
7.0.310.0060.00315.42
7.0.300.0030.00615.27
7.0.290.0000.01215.47
7.0.280.0100.00315.38
7.0.270.0000.01015.40
7.0.260.0110.00415.36
7.0.250.0080.00515.46
7.0.240.0040.00715.46
7.0.230.0070.00315.64
7.0.220.0040.01115.12
7.0.210.0040.00815.38
7.0.200.0000.01016.17
7.0.190.0070.00615.59
7.0.180.0040.01115.33
7.0.170.0070.00415.15
7.0.160.0040.01215.37
7.0.150.0040.00815.22
7.0.140.0030.04018.77
7.0.130.0030.00915.61
7.0.120.0090.00315.36
7.0.110.0000.01515.26
7.0.100.0070.04317.72
7.0.90.0140.02617.64
7.0.80.0100.02417.75
7.0.70.0060.02717.77
7.0.60.0080.02817.62
7.0.50.0050.03517.98
7.0.40.0080.03016.88
7.0.30.0150.04016.85
7.0.20.0050.04516.86
7.0.10.0080.03116.77
7.0.00.0050.02716.61
5.6.400.0030.01714.23
5.6.390.0000.00914.63
5.6.380.0030.00614.73
5.6.370.0030.00714.37
5.6.360.0110.00014.59
5.6.350.0000.00814.80
5.6.340.0050.00814.36
5.6.330.0090.00614.55
5.6.320.0000.01314.66
5.6.310.0000.01514.56
5.6.300.0070.00714.47
5.6.290.0140.00314.73
5.6.280.0020.04217.52
5.6.270.0070.00414.52
5.6.260.0040.01114.77
5.6.250.0090.02517.57
5.6.240.0050.02717.54
5.6.230.0040.04217.56
5.6.220.0000.03517.49
5.6.210.0070.03517.50
5.6.200.0050.04217.86
5.6.190.0080.03317.82
5.6.180.0050.04117.93
5.6.170.0070.04217.78
5.6.160.0140.03517.81
5.6.150.0030.04517.66
5.6.140.0060.04817.73
5.6.130.0080.03817.83
5.6.120.0020.03317.80
5.6.110.0120.02517.73
5.6.100.0050.04217.79
5.6.90.0060.02617.70
5.6.80.0020.04517.42
5.6.70.0050.04217.38
5.6.60.0070.03917.50
5.6.50.0090.04017.39
5.6.40.0060.02617.29
5.6.30.0030.04217.28
5.6.20.0070.04517.31
5.6.10.0100.01917.42
5.6.00.0050.04017.29
5.5.380.0020.05317.40
5.5.370.0120.02017.37
5.5.360.0080.03517.35
5.5.350.0100.04217.41
5.5.340.0130.03317.67
5.5.330.0080.02317.65
5.5.320.0050.04817.37
5.5.310.0070.04517.59
5.5.300.0040.03517.52
5.5.290.0080.04817.67
5.5.280.0130.03817.37
5.5.270.0070.02817.62
5.5.260.0050.03017.47
5.5.250.0070.03017.44
5.5.240.0050.02317.17
5.5.230.0020.04917.14
5.5.220.0050.04217.36
5.5.210.0050.03717.18
5.5.200.0090.03617.18
5.5.190.0050.03517.21
5.5.180.0090.03917.16
5.5.170.0060.00914.36
5.5.160.0070.02717.22
5.5.150.0080.04617.25
5.5.140.0070.04017.38
5.5.130.0110.03817.10
5.5.120.0100.04217.33
5.5.110.0140.03517.35
5.5.100.0160.03317.13
5.5.90.0080.04016.94
5.5.80.0050.03017.11
5.5.70.0090.02217.15
5.5.60.0100.02017.32
5.5.50.0090.03817.21
5.5.40.0050.04117.00
5.5.30.0090.03217.19
5.5.20.0090.04317.09
5.5.10.0070.02017.28
5.5.00.0040.03617.16
5.4.450.0060.03816.23
5.4.440.0060.02816.16
5.4.430.0010.02616.16
5.4.420.0090.04116.17
5.4.410.0020.02316.05
5.4.400.0030.04416.03
5.4.390.0060.04216.00
5.4.380.0050.03516.01
5.4.370.0020.04416.07
5.4.360.0110.01816.05
5.4.350.0000.03716.03
5.4.340.0020.03415.91
5.4.330.0100.00012.97
5.4.320.0030.02615.93
5.4.310.0060.03816.04
5.4.300.0030.04516.10
5.4.290.0050.02615.99
5.4.280.0050.03716.01
5.4.270.0030.03716.07
5.4.260.0070.01816.04
5.4.250.0030.03516.08
5.4.240.0060.04216.00
5.4.230.0080.02816.07
5.4.220.0050.03816.03
5.4.210.0070.01815.93
5.4.200.0050.02115.94
5.4.190.0070.04016.09
5.4.180.0070.03016.05
5.4.170.0050.02015.92
5.4.160.0070.01716.06
5.4.150.0070.02515.92
5.4.140.0020.04314.67
5.4.130.0100.03014.65
5.4.120.0030.02014.64
5.4.110.0050.02014.65
5.4.100.0040.02314.70
5.4.90.0030.03514.76
5.4.80.0000.02414.67
5.4.70.0070.03314.71
5.4.60.0030.03114.65
5.4.50.0030.02214.61
5.4.40.0130.03314.71
5.4.30.0030.03814.70
5.4.20.0080.02114.72
5.4.10.0060.02114.70
5.4.00.0030.02414.43
5.3.290.0050.03113.85
5.3.280.0090.03713.76
5.3.270.0050.04313.77
5.3.260.0050.03813.76
5.3.250.0040.03213.82
5.3.240.0090.03813.79
5.3.230.0070.01813.79
5.3.220.0020.02313.78
5.3.210.0060.03913.75
5.3.200.0080.03013.82
5.3.190.0000.02913.82
5.3.180.0040.02513.79
5.3.170.0080.03513.82
5.3.160.0050.04313.80
5.3.150.0030.02613.80
5.3.140.0010.02013.81
5.3.130.0040.02913.81
5.3.120.0090.02313.72
5.3.110.0060.03513.73
5.3.100.0020.02513.58
5.3.90.0070.02013.55
5.3.80.0040.03913.50
5.3.70.0060.03413.53
5.3.60.0000.03213.52
5.3.50.0030.02513.45
5.3.40.0050.04113.47
5.3.30.0070.02313.46
5.3.20.0030.03113.32
5.3.10.0060.02113.37
5.3.00.0050.01913.27
5.2.170.0070.05311.50
5.2.160.0030.05311.50
5.2.150.0070.05311.50
5.2.140.0000.03311.50
5.2.130.0030.05011.50
5.2.120.0070.04711.50
5.2.110.0000.03011.50
5.2.100.0000.05311.50
5.2.90.0030.02711.50
5.2.80.0070.06311.50
5.2.70.0030.04311.50
5.2.60.0000.03011.50
5.2.50.0000.03011.50
5.2.40.0100.02711.50
5.2.30.0100.05711.50
5.2.20.0030.05311.50
5.2.10.0000.04311.50
5.2.00.0130.03311.50
5.1.60.0000.05011.50
5.1.50.0070.03311.50
5.1.40.0070.04011.50
5.1.30.0100.04311.50
5.1.20.0100.03011.50
5.1.10.0000.05711.50
5.1.00.0000.05011.50
5.0.50.0000.04311.50
5.0.40.0100.04011.50
5.0.30.0030.05011.50
5.0.20.0070.01311.50
5.0.10.0030.03011.50
5.0.00.0000.06711.50
4.4.90.0000.01711.50
4.4.80.0100.01711.50
4.4.70.0000.02011.50
4.4.60.0000.03311.50
4.4.50.0070.03011.50
4.4.40.0030.02311.50
4.4.30.0030.03011.50
4.4.20.0030.02311.50
4.4.10.0000.01711.50
4.4.00.0000.05711.50
4.3.110.0070.03011.50
4.3.100.0000.03311.50
4.3.90.0000.03011.50
4.3.80.0030.02011.50
4.3.70.0030.01311.50
4.3.60.0000.03011.50
4.3.50.0030.03311.50
4.3.40.0070.03711.50
4.3.30.0000.01711.50
4.3.20.0000.03311.50
4.3.10.0030.03011.50
4.3.00.0000.03311.50

preferences:
45.85 ms | 401 KiB | 5 Q