3v4l.org

run code in 300+ PHP versions simultaneously
<?php $theTime = time(); // specific date/time we're checking, in epoch seconds. $tz = new DateTimeZone('America/Los_Angeles'); $transition = $tz->getTransitions($theTime, $theTime); // only one array should be returned into $transition. Now get the data: $offset = $transition[0]['offset']; $abbr = $transition[0]['abbr']; echo $offset . PHP_EOL; echo $abbr;

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)
7.4.00.0040.01415.26
7.3.120.0110.00714.60
7.3.110.0030.01615.03
7.3.100.0030.01215.02
7.3.90.0100.00014.93
7.3.80.0060.00314.77
7.3.70.0060.00614.84
7.3.60.0070.00714.99
7.3.50.0030.00615.00
7.3.40.0110.00314.97
7.3.30.0040.01014.81
7.3.20.0070.00716.59
7.3.10.0090.00316.89
7.3.00.0070.00716.61
7.2.250.0080.00815.41
7.2.240.0070.01415.19
7.2.230.0060.00915.17
7.2.220.0040.00715.30
7.2.210.0070.00715.06
7.2.200.0060.00615.16
7.2.190.0060.00315.17
7.2.180.0060.00915.35
7.2.170.0070.01115.05
7.2.60.0080.00317.20
7.1.330.0120.00315.91
7.1.320.0040.00415.68
7.1.310.0000.01515.90
7.1.300.0090.00615.91
7.1.290.0100.00315.86
7.1.280.0070.00715.91
7.1.270.0000.01315.76
7.1.260.0070.00715.96
7.1.200.0000.01615.80
7.1.70.0070.00017.02
7.1.60.0110.01419.17
7.1.50.0030.01617.02
7.1.00.0000.03722.31
7.0.200.0040.00417.07
7.0.140.0030.06722.13
7.0.100.0070.05019.96
7.0.90.0030.04719.83
7.0.80.0030.07719.89
7.0.70.0070.06719.88
7.0.60.0100.08320.01
7.0.50.0100.06720.34
7.0.40.0070.04720.10
7.0.30.0030.08720.05
7.0.20.0070.08320.10
7.0.10.0100.06019.98
7.0.00.0070.05020.09
5.6.280.0030.07320.90
5.6.250.0100.03720.48
5.6.240.0030.05320.58
5.6.230.0030.09020.45
5.6.220.0070.07720.65
5.6.210.0100.08720.44
5.6.200.0170.06021.03
5.6.190.0000.06721.17
5.6.180.0070.07721.03
5.6.170.0000.05721.05
5.6.160.0030.04321.02
5.6.150.0070.07721.05
5.6.140.0030.08020.92
5.6.130.0070.07721.00
5.6.120.0170.06321.01
5.6.110.0130.05721.00
5.6.100.0000.05721.05
5.6.90.0070.08021.01
5.6.80.0070.07320.39
5.6.70.0100.07720.39
5.6.60.0030.08320.48
5.6.50.0100.06320.55
5.6.40.0070.07720.36
5.6.30.0130.06320.36
5.6.20.0070.05320.36
5.6.10.0070.04320.29
5.6.00.0030.07320.45
5.5.380.0070.05020.45
5.5.370.0070.04720.46
5.5.360.0130.06020.39
5.5.350.0070.07020.34
5.5.340.0170.06720.68
5.5.330.0100.05320.63
5.5.320.0130.04720.77
5.5.310.0070.07720.89
5.5.300.0100.07020.90
5.5.290.0030.05020.88
5.5.280.0100.08720.89
5.5.270.0030.08020.86
5.5.260.0100.08020.88
5.5.250.0100.06320.71
5.5.240.0070.07720.21
5.5.230.0000.05020.10
5.5.220.0100.07320.20
5.5.210.0030.05320.16
5.5.200.0070.07720.14
5.5.190.0070.04720.27
5.5.180.0030.07020.21
5.5.160.0000.08320.25
5.5.150.0070.06720.12
5.5.140.0070.07020.16
5.5.130.0200.06320.25
5.5.120.0100.07720.26
5.5.110.0030.05320.14
5.5.100.0000.08020.16
5.5.90.0030.08019.97
5.5.80.0030.07320.04
5.5.70.0100.07320.00
5.5.60.0070.08019.99
5.5.50.0070.04320.07
5.5.40.0100.07319.99
5.5.30.0030.06720.02
5.5.20.0100.04719.99
5.5.10.0030.08320.03
5.5.00.0070.07719.96
5.4.450.0030.07719.12
5.4.440.0030.08319.35
5.4.430.0070.04719.27
5.4.420.0070.04719.34
5.4.410.0100.06019.23
5.4.400.0070.07719.13
5.4.390.0100.06319.14
5.4.380.0030.08318.81
5.4.370.0100.08018.95
5.4.360.0070.04018.79
5.4.350.0070.03718.81
5.4.340.0070.07718.81
5.4.320.0130.07018.98
5.4.310.0100.07318.95
5.4.300.0100.07318.81
5.4.290.0000.05018.94
5.4.280.0100.04318.80
5.4.270.0070.07319.14
5.4.260.0070.07318.94
5.4.250.0030.07019.14
5.4.240.0070.04019.12
5.4.230.0030.07319.04
5.4.220.0000.07719.22
5.4.210.0070.04319.11
5.4.200.0030.06019.02
5.4.190.0100.05318.89
5.4.180.0130.06319.04
5.4.170.0100.07319.11
5.4.160.0130.04318.76
5.4.150.0070.05719.01
5.4.140.0070.06716.28
5.4.130.0130.06016.27
5.4.120.0100.07016.20
5.4.110.0030.07316.38
5.4.100.0100.07316.26
5.4.90.0070.07716.41
5.4.80.0100.07316.43
5.4.70.0130.06316.19
5.4.60.0100.07016.28
5.4.50.0130.07016.25
5.4.40.0030.07016.45
5.4.30.0130.06016.31
5.4.20.0070.07016.26
5.4.10.0000.08016.33
5.4.00.0100.06315.68
5.3.290.0100.08014.64
5.3.280.0100.07014.43
5.3.270.0130.07014.57
5.3.260.0070.07714.48
5.3.250.0000.08014.44
5.3.240.0000.08014.59
5.3.230.0170.07014.57
5.3.220.0170.06714.48
5.3.210.0130.07014.57
5.3.200.0070.07014.38
5.3.190.0000.08014.55
5.3.180.0070.07014.51
5.3.170.0100.08014.42
5.3.160.0030.06014.55
5.3.150.0070.07314.50
5.3.140.0070.07314.50
5.3.130.0000.05014.40
5.3.120.0030.04314.40
5.3.110.0030.07714.55
5.3.100.0030.07714.03
5.3.90.0100.06713.87
5.3.80.0030.05313.97
5.3.70.0200.06014.00
5.3.60.0070.07013.96
5.3.50.0070.07313.88
5.3.40.0070.04313.90
5.3.30.0070.06013.70
5.3.20.0000.05013.66
5.3.10.0100.04313.64
5.3.00.0070.06713.50
5.2.170.0030.06011.34
5.2.160.0030.06011.34
5.2.150.0030.04711.34
5.2.140.0000.06011.34
5.2.130.0000.03711.34
5.2.120.0070.06011.34
5.2.110.0070.05711.34
5.2.100.0000.06711.34
5.2.90.0130.03311.34
5.2.80.0030.03711.34
5.2.70.0100.05711.34
5.2.60.0100.05711.34
5.2.50.0130.05011.34
5.2.40.0030.05711.34
5.2.30.0030.05311.34
5.2.20.0070.03011.34
5.2.10.0030.04711.34
5.2.00.0100.05311.34
5.1.60.0000.05311.34
5.1.50.0000.05311.34
5.1.40.0070.04011.34
5.1.30.0030.03311.34
5.1.20.0100.05011.34
5.1.10.0030.02711.34
5.1.00.0000.06311.34
5.0.50.0070.04011.34
5.0.40.0000.04711.34
5.0.30.0070.06011.34
5.0.20.0030.04311.34
5.0.10.0030.04311.34
5.0.00.0070.06311.34
4.4.90.0100.02311.34
4.4.80.0000.03011.34
4.4.70.0030.03311.34
4.4.60.0070.03311.34
4.4.50.0000.03311.34
4.4.40.0000.05311.34
4.4.30.0100.02711.34
4.4.20.0030.03311.34
4.4.10.0000.03311.34
4.4.00.0000.06011.34
4.3.110.0030.02711.34
4.3.100.0070.03011.34
4.3.90.0000.02011.34
4.3.80.0030.04711.34
4.3.70.0100.02311.34
4.3.60.0000.03311.34
4.3.50.0070.03011.34
4.3.40.0070.02711.34
4.3.30.0000.03011.34
4.3.20.0000.01711.34
4.3.10.0000.01711.34
4.3.00.0000.01311.34

preferences:
48.48 ms | 401 KiB | 5 Q