3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myFunction($format, $timestamp){ echo $format."/"; } function _date($format, $timestamp = null){ $result = !isset($timestamp) ? date($format) : date($format, $timestamp); myFunction($format, $timestamp); return $result; } echo _date("Y-m-d");

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.0070.00716.38
8.3.60.0150.00318.22
8.3.50.0140.00316.25
8.3.40.0120.00318.60
8.3.30.0090.00618.68
8.3.20.0040.00418.99
8.3.10.0000.00723.57
8.3.00.0080.00020.58
8.2.190.0090.00918.11
8.2.180.0090.00618.54
8.2.170.0100.00722.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00521.10
8.2.110.0060.00320.34
8.2.100.0060.00617.91
8.2.90.0080.00017.84
8.2.80.0040.00418.05
8.2.70.0080.00018.05
8.2.60.0080.00018.24
8.2.50.0040.00818.10
8.2.40.0020.00519.48
8.2.30.0040.00419.35
8.2.20.0000.00718.05
8.2.10.0000.00818.08
8.2.00.0030.00519.86
8.1.280.0070.01425.92
8.1.270.0020.00522.20
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0110.00217.57
8.1.230.0090.00322.70
8.1.220.0090.00017.77
8.1.210.0080.00018.88
8.1.200.0000.00917.35
8.1.190.0040.00717.48
8.1.180.0050.00318.10
8.1.170.0000.00818.83
8.1.160.0030.00619.03
8.1.150.0000.00718.99
8.1.140.0000.00722.13
8.1.130.0000.00720.13
8.1.120.0030.00617.63
8.1.110.0040.00417.50
8.1.100.0040.00417.50
8.1.90.0070.00017.61
8.1.80.0000.00917.50
8.1.70.0030.00317.57
8.1.60.0060.00317.64
8.1.50.0030.00517.59
8.1.40.0030.00517.46
8.1.30.0040.00717.61
8.1.20.0070.00017.75
8.1.10.0070.00017.61
8.1.00.0050.00217.55
8.0.300.0000.00719.78
8.0.290.0050.00216.88
8.0.280.0030.00318.51
8.0.270.0000.00717.29
8.0.260.0030.00318.47
8.0.250.0040.00417.05
8.0.240.0000.00717.04
8.0.230.0040.00417.09
8.0.220.0030.00317.02
8.0.210.0030.00316.98
8.0.200.0030.00317.09
8.0.190.0000.00716.96
8.0.180.0030.00516.90
8.0.170.0040.00416.93
8.0.160.0040.00416.93
8.0.150.0040.00717.01
8.0.140.0040.00416.75
8.0.130.0030.00313.34
8.0.120.0040.00416.81
8.0.110.0000.00716.84
8.0.100.0000.00716.87
8.0.90.0040.00316.91
8.0.80.0090.01116.93
8.0.70.0000.00716.79
8.0.60.0070.00016.80
8.0.50.0080.00016.83
8.0.30.0090.01217.00
8.0.20.0070.01117.40
8.0.10.0040.00417.18
8.0.00.0100.00816.91
7.4.330.0050.00015.55
7.4.320.0030.00316.66
7.4.300.0040.00416.48
7.4.290.0000.00616.46
7.4.280.0030.00516.67
7.4.270.0050.00316.68
7.4.260.0000.00816.58
7.4.250.0000.00816.55
7.4.240.0070.00016.56
7.4.230.0090.00016.55
7.4.220.0080.00016.57
7.4.210.0110.00316.62
7.4.200.0050.00316.46
7.4.160.0080.00716.66
7.4.140.0070.01117.86
7.4.130.0090.00916.41
7.4.120.0110.00716.61
7.4.110.0110.00716.64
7.4.100.0090.01516.51
7.4.90.0170.00616.70
7.4.80.0090.00919.39
7.4.70.0100.00716.40
7.4.60.0100.00716.47
7.4.50.0030.01316.28
7.4.40.0070.01016.32
7.4.00.0030.00615.05
7.3.330.0030.00313.38
7.3.320.0030.00313.22
7.3.310.0000.00916.27
7.3.300.0000.00716.28
7.3.290.0030.00316.37
7.3.280.0110.00816.35
7.3.260.0110.01116.53
7.3.240.0110.00716.58
7.3.230.0030.01316.48
7.3.210.0030.01316.59
7.3.200.0060.01016.66
7.3.190.0120.00616.57
7.3.180.0130.01016.49
7.3.170.0150.00416.69
7.3.160.0070.00716.53
7.2.330.0070.01116.78
7.2.320.0060.01216.80
7.2.310.0160.00016.79
7.2.300.0090.01316.88
7.2.290.0040.01216.51
7.2.110.0090.00616.64
7.2.100.0040.01116.62
7.2.90.0000.01316.67
7.2.80.0090.00616.72
7.2.70.0150.00016.91
7.2.60.0130.00016.70
7.2.50.0060.00916.73
7.2.40.0080.00816.73
7.2.30.0070.01117.00
7.2.20.0000.01316.88
7.2.10.0090.00316.77
7.2.00.0090.00616.71
7.1.230.0040.01115.84
7.1.220.0070.01015.89
7.1.210.0040.01115.72
7.1.200.0100.00315.97
7.1.190.0030.01015.79
7.1.180.0040.00715.64
7.1.170.0130.00315.75
7.1.160.0080.00315.64
7.1.150.0070.00415.47
7.1.140.0090.00315.76
7.1.130.0120.00315.68
7.1.120.0110.00415.71
7.1.110.0040.01115.74
7.1.100.0060.00615.55
7.1.90.0030.01015.84
7.1.80.0110.00415.91
7.1.70.0090.00615.70
7.1.60.0060.00615.71
7.1.50.0140.00015.88
7.1.40.0110.00015.69
7.1.30.0060.00615.74
7.1.20.0080.00415.70
7.1.10.0090.00615.87
7.1.00.0160.00015.76
5.6.380.0080.00514.44

preferences:
20.02 ms | 401 KiB | 5 Q