3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timezone_string1 = 'America/Regina'; $timezone_string2 = 'Europe/Zurich'; $summer = '2012-06-01 00:00:00'; $winter = '2012-12-01 00:00:00'; $format = 'Y-m-d H:i:s T P e'; echo "Summer: $summer\n"; $timezone_object = timezone_open( $timezone_string1 ); $date_object_summer = date_create( $summer, $timezone_object ); var_dump( date_format( $date_object_summer, $format ) ); $timezone_object = timezone_open( $timezone_string2 ); $date_object_summer = date_create( $summer, $timezone_object ); var_dump( date_format( $date_object_summer, $format ) ); echo "\nWinter: $winter\n"; $timezone_object = timezone_open( $timezone_string1 ); $date_object_winter = date_create( $winter, $timezone_object ); var_dump( date_format( $date_object_winter, $format ) ); $timezone_object = timezone_open( $timezone_string2 ); $date_object_winter = date_create( $winter, $timezone_object ); var_dump( date_format( $date_object_winter, $format ) );

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.0090.00017.98
8.4.10.0070.01419.39
8.3.150.0150.00418.33
8.3.140.0090.00617.37
8.3.130.0150.00418.40
8.3.120.0180.00318.98
8.3.110.0040.00420.94
8.3.100.0100.01024.06
8.3.90.0050.00526.77
8.3.80.0060.00317.97
8.3.70.0060.01216.48
8.3.60.0090.01316.88
8.3.50.0090.01022.00
8.3.40.0060.00919.00
8.3.30.0120.00618.82
8.3.20.0000.00819.03
8.3.10.0040.00421.69
8.3.00.0090.00021.60
8.2.260.0060.01216.84
8.2.250.0090.00916.73
8.2.240.0060.01319.16
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0000.01526.77
8.2.200.0030.00718.29
8.2.190.0080.00816.88
8.2.180.0070.01116.63
8.2.170.0140.00319.09
8.2.160.0070.01122.96
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00319.89
8.2.120.0040.00426.35
8.2.110.0040.00420.39
8.2.100.0000.01217.91
8.2.90.0070.00020.42
8.2.80.0000.00820.48
8.2.70.0030.00617.63
8.2.60.0030.00617.75
8.2.50.0000.00817.75
8.2.40.0060.00319.65
8.2.30.0030.00519.32
8.2.20.0040.00418.19
8.2.10.0060.00318.33
8.2.00.0000.00718.07
8.1.310.0040.00418.56
8.1.300.0090.00019.51
8.1.290.0060.00330.84
8.1.280.0180.00025.92
8.1.270.0000.00823.83
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.07
8.1.230.0040.00723.86
8.1.220.0060.00317.79
8.1.210.0000.00818.97
8.1.200.0000.01117.48
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0030.00622.17
8.1.150.0000.00720.30
8.1.140.0070.00019.57
8.1.130.0000.00717.75
8.1.120.0040.00417.63
8.1.110.0030.00517.57
8.1.100.0000.00717.66
8.1.90.0040.00417.54
8.1.80.0000.00717.67
8.1.70.0040.00417.75
8.1.60.0060.00317.61
8.1.50.0030.00517.68
8.1.40.0050.00317.73
8.1.30.0000.00817.87
8.1.20.0040.00417.70
8.1.10.0000.00817.61
8.1.00.0000.00817.64
8.0.300.0040.00420.16
8.0.290.0040.00417.00
8.0.280.0030.00518.65
8.0.270.0030.00617.31
8.0.260.0070.00317.39
8.0.250.0000.00717.24
8.0.240.0030.00317.21
8.0.230.0040.00417.11
8.0.220.0070.00017.05
8.0.210.0000.00717.02
8.0.200.0080.00017.20
8.0.190.0030.00617.14
8.0.180.0040.00417.14
8.0.170.0050.00217.25
8.0.160.0020.00517.22
8.0.150.0000.00717.14
8.0.140.0050.00217.17
8.0.130.0070.00013.54
8.0.120.0040.00417.18
8.0.110.0050.00317.05
8.0.100.0030.00617.14
8.0.90.0000.00717.06
8.0.80.0040.01117.16
8.0.70.0040.00417.27
8.0.60.0030.00516.96
8.0.50.0030.00517.16
8.0.30.0130.01417.32
8.0.20.0120.00817.45
8.0.10.0040.00417.27
8.0.00.0080.00816.84
7.4.330.0030.00315.55
7.4.320.0040.00416.75
7.4.300.0030.00316.64
7.4.290.0030.00316.50
7.4.280.0030.00516.73
7.4.270.0030.00316.70
7.4.260.0000.00716.63
7.4.250.0070.00016.66
7.4.240.0040.00416.54
7.4.230.0000.00716.55
7.4.220.0140.00416.57
7.4.210.0150.00016.67
7.4.200.0000.00716.58
7.4.160.0050.01116.61
7.4.150.0110.01417.40
7.4.140.0100.01017.86
7.4.130.0090.01016.71
7.4.120.0060.01216.72
7.4.110.0100.00716.74
7.4.100.0060.01216.78
7.4.90.0110.00716.53
7.4.80.0030.01419.39
7.4.70.0080.00816.76
7.4.60.0070.01016.54
7.4.50.0030.01316.41
7.4.40.0190.00616.62
7.4.30.0030.01316.55
7.4.10.0040.01414.90
7.4.00.0060.01115.04
7.3.330.0020.00213.31
7.3.320.0030.00313.27
7.3.310.0040.00416.46
7.3.300.0000.00716.43
7.3.290.0090.00916.44
7.3.280.0070.01116.44
7.3.270.0160.00317.40
7.3.260.0040.01316.77
7.3.250.0080.00916.62
7.3.240.0110.01116.86
7.3.230.0090.00916.52
7.3.210.0030.01316.39
7.3.200.0100.00716.67
7.3.190.0030.01916.64
7.3.180.0060.01016.80
7.3.170.0030.01316.39
7.3.160.0060.01316.64
7.3.130.0090.00615.07
7.3.120.0030.01015.15
7.3.110.0110.00715.10
7.3.100.0000.01414.81
7.3.90.0000.01915.02
7.3.80.0090.00615.25
7.3.70.0050.00514.91
7.3.60.0030.01014.94
7.3.50.0030.00615.01
7.3.40.0040.00714.81
7.3.30.0040.01114.73
7.3.20.0070.00716.85
7.3.10.0050.00816.84
7.3.00.0030.00916.91
7.2.330.0170.00716.89
7.2.320.0120.01116.75
7.2.310.0100.01416.57
7.2.300.0080.01416.70
7.2.290.0180.00016.52
7.2.260.0140.00315.27
7.2.250.0040.01215.08
7.2.240.0040.01115.08
7.2.230.0070.00715.39
7.2.220.0030.00615.13
7.2.210.0000.01415.07
7.2.200.0040.00815.20
7.2.190.0100.00315.14
7.2.180.0060.00815.23
7.2.170.0090.00315.26
7.2.160.0060.00615.18
7.2.150.0030.01016.88
7.2.140.0100.00316.85
7.2.130.0040.01216.96
7.2.120.0050.00816.99
7.2.110.0070.00717.04
7.2.100.0070.01017.16
7.2.90.0000.01217.09
7.2.80.0060.00616.93
7.2.70.0070.00717.21
7.2.60.0100.00317.02
7.2.50.0050.01117.03
7.2.40.0040.00817.12
7.2.30.0070.00617.20
7.2.20.0040.01017.16
7.2.10.0050.00917.12
7.2.00.0040.01117.02
7.1.330.0080.00815.84
7.1.320.0000.01115.82
7.1.310.0030.00615.70
7.1.300.0060.01116.10
7.1.290.0040.00415.76
7.1.280.0060.00915.86
7.1.270.0070.00315.65
7.1.260.0040.00416.09
7.1.250.0060.00615.83
7.1.240.0090.00416.06
7.1.230.0070.00715.85
7.1.220.0120.00315.89
7.1.210.0070.01015.71
7.1.200.0120.00515.93
7.1.190.0040.00816.18
7.1.180.0060.01015.93
7.1.170.0070.00715.97
7.1.160.0030.00616.16
7.1.150.0060.01016.06
7.1.140.0040.01216.06
7.1.130.0090.00615.86
7.1.120.0000.00915.98
7.1.110.0060.00915.77
7.1.100.0100.00616.13
7.1.90.0120.00316.14
7.1.80.0040.00815.95
7.1.70.0070.00416.64
7.1.60.0050.00916.77
7.1.50.0040.01215.94
7.1.40.0000.01016.12
7.1.30.0080.00615.84
7.1.20.0090.00315.88
7.1.10.0070.00415.99
7.1.00.0070.03919.22
7.0.330.0040.00715.52
7.0.320.0080.00815.63
7.0.310.0040.01115.62
7.0.300.0030.00915.80
7.0.290.0030.01215.75
7.0.280.0040.00715.42
7.0.270.0070.00715.41
7.0.260.0040.01115.59
7.0.250.0060.00615.53
7.0.240.0100.00715.80
7.0.230.0110.00415.70
7.0.220.0060.00615.46
7.0.210.0110.00315.55
7.0.200.0030.00716.24
7.0.190.0100.00715.67
7.0.180.0000.01915.59
7.0.170.0060.00915.66
7.0.160.0040.01115.74
7.0.150.0000.01415.43
7.0.140.0100.00315.63
7.0.130.0030.00815.72
7.0.120.0060.03318.95
7.0.110.0090.03318.91
7.0.100.0060.03418.77
7.0.90.0080.03218.83
7.0.80.0100.02818.86
7.0.70.0110.02818.92
7.0.60.0080.03218.66
7.0.50.0060.03118.91
7.0.40.0100.03417.86
7.0.30.0150.02517.89
7.0.20.0080.04017.96
7.0.10.0060.03117.73
7.0.00.0100.03017.99
5.6.400.0080.00414.21
5.6.390.0080.00314.52
5.6.380.0070.00714.75
5.6.370.0070.00714.64
5.6.360.0080.00414.30
5.6.350.0040.01114.47
5.6.340.0060.01014.10
5.6.330.0090.00614.60
5.6.320.0050.00514.52
5.6.310.0070.00714.54
5.6.300.0130.00314.81
5.6.290.0000.01614.31
5.6.280.0070.00414.80
5.6.270.0110.02917.88
5.6.260.0100.03117.78
5.6.250.0090.03717.62
5.6.240.0120.04017.74
5.6.230.0070.03517.66
5.6.220.0090.03017.74
5.6.210.0090.03017.59
5.6.200.0050.03317.58
5.6.190.0080.04417.89
5.6.180.0030.03617.62
5.6.170.0080.03017.74
5.6.160.0060.03317.63
5.6.150.0050.03817.70
5.6.140.0050.03817.71
5.6.130.0060.03317.85
5.6.120.0060.03217.50
5.6.110.0080.04017.70
5.6.100.0030.03817.58
5.6.90.0050.04217.79
5.6.80.0070.04317.26
5.6.70.0020.03717.40
5.6.60.0050.03317.29
5.6.50.0140.03017.43
5.6.40.0080.03317.45
5.6.30.0100.04017.20
5.6.20.0050.04317.31
5.6.10.0130.03517.30
5.6.00.0140.03617.44
5.5.380.0100.05317.40
5.5.370.0070.05017.66
5.5.360.0030.05717.45
5.5.350.0030.05317.55
5.5.340.0070.05018.09
5.5.330.0070.05717.77
5.5.320.0100.05318.25
5.5.310.0070.06317.84
5.5.300.0070.06017.86
5.5.290.0130.05718.00
5.5.280.0030.08018.02
5.5.270.0030.06317.98
5.5.260.0030.07717.84
5.5.250.0130.06018.06
5.5.240.0070.06317.41
5.5.230.0130.05317.46
5.5.220.0100.05317.62
5.5.210.0030.05717.50
5.5.200.0100.05317.21
5.5.190.0070.06317.48
5.5.180.0170.05717.45
5.5.160.0030.05317.44
5.5.150.0030.05717.23
5.5.140.0030.06317.13
5.5.130.0070.05017.37
5.5.120.0170.06017.59
5.5.110.0070.06717.37
5.5.100.0070.05317.12
5.5.90.0030.07317.20
5.5.80.0100.05317.35
5.5.70.0000.05717.27
5.5.60.0100.05017.40
5.5.50.0070.05317.40
5.5.40.0070.04717.22
5.5.30.0100.04717.10
5.5.20.0070.05017.45
5.5.10.0000.05717.36
5.5.00.0070.05017.18
5.4.450.0000.06719.49
5.4.440.0100.05319.28
5.4.430.0030.07019.53
5.4.420.0030.06319.47
5.4.410.0170.06019.22
5.4.400.0130.06019.01
5.4.390.0030.06019.07
5.4.380.0030.05319.21
5.4.370.0100.05319.03
5.4.360.0070.06319.06
5.4.350.0130.04318.93
5.4.340.0070.07319.03
5.4.320.0100.07319.04
5.4.310.0000.05718.95
5.4.300.0100.05018.98
5.4.290.0000.06018.95
5.4.280.0130.07319.02
5.4.270.0130.06019.07
5.4.260.0070.05018.98
5.4.250.0000.05718.98
5.4.240.0100.05319.07
5.4.230.0030.05719.00
5.4.220.0000.07319.05
5.4.210.0000.06718.89
5.4.200.0070.05019.02
5.4.190.0100.04719.11
5.4.180.0030.05018.94
5.4.170.0070.05019.15
5.4.160.0070.04718.98
5.4.150.0070.05019.05
5.4.140.0030.05316.62
5.4.130.0070.04716.21
5.4.120.0030.05016.30
5.4.110.0070.06016.45
5.4.100.0070.05016.35
5.4.90.0070.04716.56
5.4.80.0170.04316.52
5.4.70.0100.04316.35
5.4.60.0070.04716.58
5.4.50.0030.05016.22
5.4.40.0100.04316.31
5.4.30.0000.05316.34
5.4.20.0000.05316.50
5.4.10.0000.05316.25
5.4.00.0000.05015.78
5.3.290.0100.05014.67
5.3.280.0030.05314.62
5.3.270.0030.05314.61
5.3.260.0070.05014.48
5.3.250.0030.05314.54
5.3.240.0030.06714.63
5.3.230.0100.04314.54
5.3.220.0000.05314.57
5.3.210.0070.05314.57
5.3.200.0100.05014.61
5.3.190.0070.05714.43
5.3.180.0070.05314.56
5.3.170.0070.06714.37
5.3.160.0030.04714.57
5.3.150.0030.05314.43
5.3.140.0000.05314.42
5.3.130.0000.05314.48
5.3.120.0070.05014.34
5.3.110.0070.04714.57
5.3.100.0000.05313.97
5.3.90.0030.05014.01
5.3.80.0000.05713.95
5.3.70.0030.05013.80
5.3.60.0070.04714.01
5.3.50.0100.04013.80
5.3.40.0030.05013.94
5.3.30.0000.05013.84
5.3.20.0030.04713.58
5.3.10.0070.04313.57
5.3.00.0000.05013.62
5.2.170.0000.06011.15
5.2.160.0070.05311.16
5.2.150.0030.04011.10
5.2.140.0030.04011.07
5.2.130.0030.04011.11
5.2.120.0000.04311.14
5.2.110.0070.03711.01
5.2.100.0030.03711.12
5.2.90.0030.03711.11
5.2.80.0030.04011.05
5.2.70.0030.04011.20
5.2.60.0030.04010.99
5.2.50.0030.04010.99
5.2.40.0000.04311.02
5.2.30.0030.04010.90
5.2.20.0070.03710.90
5.2.10.0030.04010.93
5.2.00.0000.04010.80
5.1.60.0030.0339.93
5.1.50.0030.0339.89
5.1.40.0070.0439.88
5.1.30.0100.03310.20
5.1.20.0070.04710.45
5.1.10.0030.0439.98
5.1.00.0030.03310.27
5.0.50.0030.0308.57
5.0.40.0070.0238.41
5.0.30.0100.0508.25
5.0.20.0030.0278.18
5.0.10.0000.0308.26
5.0.00.0030.0538.16
4.4.90.0070.0205.81
4.4.80.0070.0175.80
4.4.70.0000.0235.81
4.4.60.0000.0235.71
4.4.50.0000.0235.86
4.4.40.0030.0335.77
4.4.30.0000.0305.79
4.4.20.0030.0235.90
4.4.10.0000.0235.83
4.4.00.0000.0375.81
4.3.110.0000.0275.74
4.3.100.0000.0305.63
4.3.90.0030.0275.72
4.3.80.0000.0335.68
4.3.70.0070.0235.75
4.3.60.0030.0205.70
4.3.50.0030.0235.82
4.3.40.0070.0335.64
4.3.30.0030.0275.46
4.3.20.0070.0205.48
4.3.10.0000.0235.50
4.3.00.0070.0175.50

preferences:
85.08 ms | 403 KiB | 5 Q