3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array('in_monitoring' => new DateTime('now', new DateTimeZone('UTC'))); $json = json_encode($var); echo $json; $arr = json_decode($json); print_r($arr); echo PHP_EOL, $arr['in_monitoring']->timezone;

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.70.0130.00716.63
8.3.60.0040.01116.75
8.3.50.0100.00922.05
8.3.40.0110.00418.78
8.3.30.0070.00718.99
8.3.20.0040.00420.16
8.3.10.0080.00023.68
8.3.00.0080.00019.63
8.2.190.0090.00616.88
8.2.180.0000.01618.25
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0090.00019.33
8.2.120.0000.00826.35
8.2.110.0060.00320.41
8.2.100.0040.00817.84
8.2.90.0030.00519.17
8.2.80.0000.00817.97
8.2.70.0060.00317.88
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0050.00319.36
8.2.30.0020.00520.62
8.2.20.0030.00617.83
8.2.10.0040.00418.17
8.2.00.0040.00418.22
8.1.280.0120.00325.92
8.1.270.0030.00623.91
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0100.00521.89
8.1.230.0090.00321.04
8.1.220.0030.00518.69
8.1.210.0000.00818.77
8.1.200.0000.00917.38
8.1.190.0050.00517.36
8.1.180.0000.00818.10
8.1.170.0040.00418.76
8.1.160.0000.00721.87
8.1.150.0040.00418.73
8.1.140.0060.00319.51
8.1.130.0000.00717.53
8.1.120.0000.00717.41
8.1.110.0000.00717.37
8.1.100.0030.00617.43
8.1.90.0020.00517.59
8.1.80.0040.00417.38
8.1.70.0030.00317.38
8.1.60.0080.00017.55
8.1.50.0000.00917.61
8.1.40.0000.00917.42
8.1.30.0030.00617.66
8.1.20.0040.00417.61
8.1.10.0060.00317.68
8.1.00.0040.00417.57
8.0.300.0020.00518.77
8.0.290.0000.00717.00
8.0.280.0070.00018.32
8.0.270.0030.00317.25
8.0.260.0030.00317.11
8.0.250.0030.00317.14
8.0.240.0000.00817.15
8.0.230.0030.00317.09
8.0.220.0020.00517.04
8.0.210.0040.00416.91
8.0.200.0080.00017.15
8.0.190.0030.00617.12
8.0.180.0000.00717.05
8.0.170.0050.00317.05
8.0.160.0030.00317.08
8.0.150.0040.00416.99
8.0.140.0040.00316.95
8.0.130.0030.00313.45
8.0.120.0040.00416.92
8.0.110.0040.00417.02
8.0.100.0000.00717.05
8.0.90.0070.00017.01
8.0.80.0090.00917.00
8.0.70.0050.00317.08
8.0.60.0040.00416.92
8.0.50.0000.00716.98
8.0.30.0130.00617.15
8.0.20.0140.01417.40
8.0.10.0040.00417.17
8.0.00.0070.01017.01
7.4.330.0060.00016.90
7.4.320.0000.00716.55
7.4.300.0020.00516.57
7.4.290.0000.00716.45
7.4.280.0030.00616.47
7.4.270.0030.00316.46
7.4.260.0070.00016.48
7.4.250.0050.00316.52
7.4.240.0020.00516.53
7.4.230.0000.00716.49
7.4.220.0120.00616.59
7.4.210.0070.00716.68
7.4.200.0040.00316.76
7.4.160.0120.00816.58
7.4.150.0140.00517.40
7.4.140.0080.01217.86
7.4.130.0060.01416.62
7.4.120.0100.01016.63
7.4.110.0090.00816.70
7.4.100.0160.00616.73
7.4.90.0070.01116.48
7.4.80.0110.01119.39
7.4.70.0140.01116.75
7.4.60.0090.00616.44
7.4.50.0070.01116.51
7.4.40.0090.00616.62
7.4.30.0140.01016.60
7.4.00.0050.00915.09
7.3.330.0040.00213.40
7.3.320.0000.00513.45
7.3.310.0070.00016.50
7.3.300.0020.00516.46
7.3.290.0030.00316.40
7.3.280.0100.00716.45
7.3.270.0190.00017.40
7.3.260.0070.01016.60
7.3.250.0080.00916.51
7.3.240.0090.00916.59
7.3.230.0120.00916.45
7.3.210.0100.00716.68
7.3.200.0000.01616.51
7.3.190.0060.01516.51
7.3.180.0030.01316.42
7.3.170.0110.00716.49
7.3.160.0040.01116.43
7.3.120.0060.01215.10
7.3.110.0070.00715.08
7.3.100.0030.01315.05
7.3.90.0030.01315.00
7.3.80.0060.00614.91
7.3.70.0070.00315.03
7.3.60.0030.00914.68
7.3.50.0030.00714.88
7.3.40.0090.00614.84
7.3.30.0060.00314.75
7.3.20.0040.00916.82
7.3.10.0040.00416.80
7.3.00.0070.00716.77
7.2.330.0170.00016.53
7.2.320.0040.01516.82
7.2.310.0110.00516.60
7.2.300.0100.01416.65
7.2.290.0090.00916.44
7.2.250.0140.00314.81
7.2.240.0030.01415.46
7.2.230.0080.00815.08
7.2.220.0090.00915.06
7.2.210.0080.00414.81
7.2.200.0030.01215.00
7.2.190.0070.00715.02
7.2.180.0060.01015.08
7.2.170.0070.00715.11
7.2.60.0090.00716.84
7.2.00.0070.01319.30
7.1.330.0070.00716.03
7.1.320.0070.00316.04
7.1.310.0090.00015.85
7.1.300.0030.00915.95
7.1.290.0090.00916.00
7.1.280.0030.00615.76
7.1.270.0060.00615.65
7.1.260.0100.00715.92
7.1.200.0150.00415.58
7.1.100.0170.00917.82
7.1.70.0040.00917.41
7.1.60.0120.01219.36
7.1.50.0030.01416.79
7.1.00.0100.07022.28
7.0.200.0090.00017.04
7.0.90.0100.07719.81
7.0.80.0100.08719.82
7.0.70.0070.08719.80
7.0.60.0170.07019.97
7.0.50.0170.07720.36
7.0.40.0070.08020.15
7.0.30.0130.07720.15
7.0.20.0000.06020.08
7.0.10.0100.08320.17
7.0.00.0230.06020.03
5.6.280.0030.05021.08
5.6.240.0100.07720.45
5.6.230.0070.07720.57
5.6.220.0130.07320.56
5.6.210.0070.08320.68
5.6.200.0030.05320.96
5.6.190.0100.08021.08
5.6.180.0170.04321.18
5.6.170.0100.08021.01
5.6.160.0030.04721.08
5.6.150.0100.05021.07
5.6.140.0070.05321.16
5.6.130.0100.08020.92
5.6.120.0000.08721.01
5.6.110.0070.05020.95
5.6.100.0100.07321.15
5.6.90.0270.06720.98
5.6.80.0100.06020.33
5.6.70.0070.08320.39
5.6.60.0000.08020.38
5.6.50.0100.06720.49
5.6.40.0130.07020.30
5.6.30.0130.07720.31
5.6.20.0030.08720.29
5.6.10.0130.07720.46
5.6.00.0070.04720.50
5.5.380.0000.04320.49
5.5.370.0130.04320.35
5.5.360.0070.04320.29
5.5.350.0030.06320.43
5.5.340.0030.05320.82
5.5.330.0070.06020.80
5.5.320.0130.06720.92
5.5.310.0070.08020.75
5.5.300.0030.07020.84
5.5.290.0070.08720.86
5.5.280.0030.05320.89
5.5.270.0300.05720.75
5.5.260.0030.08020.87
5.5.250.0070.07720.73
5.5.240.0100.05320.30
5.5.230.0070.06720.20
5.5.220.0130.06320.29
5.5.210.0100.08020.25
5.5.200.0030.05020.18
5.5.190.0170.08320.23
5.5.180.0070.06720.10
5.5.160.0030.06320.18
5.5.150.0030.06720.25
5.5.140.0100.07020.25
5.5.130.0100.06019.98
5.5.120.0070.07319.98
5.5.110.0070.07320.09
5.5.100.0070.05020.07
5.5.90.0030.08020.11
5.5.80.0100.03320.02
5.5.70.0100.08020.08
5.5.60.0100.07020.15
5.5.50.0070.07020.04
5.5.40.0130.06320.19
5.5.30.0030.04020.03
5.5.20.0030.06020.04
5.5.10.0000.04019.99
5.5.00.0070.07720.02

preferences:
81.69 ms | 401 KiB | 5 Q