3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Foo\Bar; function date($format, $timestamp = null) { if ($format == 'Y') { return '2010'; } throw new \Exception("Only Y format is supported"); } echo date('Y');

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.5.90.0080.00616.71
8.5.80.0090.00616.70
8.5.70.0040.00916.91
8.5.60.0120.00618.23
8.5.50.0050.00316.51
8.5.30.0110.00618.93
8.5.20.0150.00316.53
8.5.10.0100.00816.57
8.5.00.0180.00719.96
8.4.240.0130.00919.38
8.4.230.0120.00919.30
8.4.220.0100.01019.55
8.4.210.0140.00721.26
8.4.180.0130.01119.59
8.4.170.0120.01123.77
8.4.160.0100.01123.84
8.4.150.0080.00716.83
8.4.140.0090.01217.61
8.4.130.0110.00917.55
8.4.120.0070.00920.27
8.4.110.0080.00722.54
8.4.100.0120.00917.66
8.4.90.0130.00717.74
8.4.80.0110.00917.50
8.4.70.0050.00317.44
8.4.60.0080.01218.59
8.4.50.0090.01217.46
8.4.40.0070.01117.75
8.4.30.0030.00620.71
8.4.20.0100.01017.85
8.4.10.0160.00325.71
8.3.320.0130.00719.95
8.3.310.0110.00618.34
8.3.300.0130.00720.88
8.3.290.0130.00820.72
8.3.280.0160.00918.06
8.3.270.0160.00916.48
8.3.260.0160.00316.41
8.3.250.0090.00718.93
8.3.240.0120.00716.60
8.3.230.0060.01116.45
8.3.220.0140.00517.01
8.3.210.0060.00216.47
8.3.200.0070.00216.73
8.3.190.0040.00519.00
8.3.180.0110.00916.58
8.3.170.0090.00917.24
8.3.160.0120.00616.46
8.3.150.0120.00618.71
8.3.140.0030.01616.40
8.3.130.0030.00618.60
8.3.120.0050.00318.92
8.3.110.0040.00416.29
8.3.100.0080.00020.19
8.3.90.0050.00326.77
8.3.80.0060.00625.10
8.3.70.0130.01223.71
8.3.60.0130.00923.66
8.3.50.0040.01026.05
8.3.40.0140.00524.78
8.3.30.0140.00624.62
8.3.20.0130.00327.51
8.3.10.0110.00727.75
8.3.00.0090.00728.50
8.2.320.0140.00618.00
8.2.310.0110.00917.96
8.2.300.0100.00918.69
8.2.290.0110.00822.13
8.2.280.0120.00618.34
8.2.270.0120.00616.66
8.2.260.0100.00718.99
8.2.250.0120.00316.59
8.2.240.0060.01017.66
8.2.230.0110.00720.94
8.2.220.0090.00024.06
8.2.210.0100.01026.77
8.2.200.0130.00424.86
8.2.190.0140.00523.71
8.2.180.0140.00728.38
8.2.170.0120.00724.81
8.2.160.0160.00526.90
8.2.150.0140.00428.25
8.2.140.0160.00227.75
8.2.130.0150.00528.50
8.2.120.0110.00828.59
8.2.110.0150.00226.50
8.2.100.0110.00624.31
8.2.90.0110.00424.29
8.2.80.0080.00724.75
8.2.70.0130.00324.23
8.2.60.0100.00524.38
8.2.50.0090.00724.44
8.2.40.0080.00724.48
8.2.30.0180.00222.10
8.2.20.0030.01022.57
8.2.10.0120.00322.47
8.2.00.0070.00621.67
8.1.340.0140.00521.61
8.1.330.0040.00418.29
8.1.320.0120.00615.89
8.1.310.0040.01516.42
8.1.300.0100.00516.13
8.1.290.0160.00230.84
8.1.280.0180.00228.38
8.1.270.0140.00527.41
8.1.260.0110.00629.46
8.1.250.0090.00929.46
8.1.240.0110.00427.34
8.1.230.0140.00325.90
8.1.220.0080.00624.29
8.1.210.0100.00624.80
8.1.200.0110.00323.98
8.1.190.0070.00723.97
8.1.180.0080.00824.47
8.1.170.0110.00625.61
8.1.160.0120.00322.41
8.1.150.0110.00522.42
8.1.140.0110.00522.38
8.1.130.0120.00221.49
8.1.120.0090.00520.82
8.1.110.0110.00320.81
8.1.100.0070.00519.65
8.1.90.0110.00220.87
8.1.80.0070.00620.80
8.1.70.0130.00220.78
8.1.60.0110.00420.89
8.1.50.0130.00320.83
8.1.40.0090.00720.83
8.1.30.0110.00620.87
8.1.20.0100.00520.88
8.1.10.0120.00320.83
8.1.00.0100.00420.77
8.0.300.0120.00424.80
8.0.290.0120.00423.73
8.0.280.0120.00422.26
8.0.270.0100.00422.12
8.0.260.0080.00421.05
8.0.250.0070.00620.98
8.0.240.0100.00320.96
8.0.230.0100.00420.90
8.0.220.0110.00320.61
8.0.210.0080.00720.64
8.0.200.0100.00320.63
8.0.190.0070.00520.63
8.0.180.0090.00520.67
8.0.170.0110.00220.63
8.0.160.0090.00520.64
8.0.150.0120.00220.62
8.0.140.0090.00720.64
8.0.130.0100.00719.75
8.0.120.0110.00219.14
8.0.110.0050.00719.14
8.0.100.0090.00319.12
8.0.90.0120.00319.15
8.0.80.0110.00718.75
8.0.70.0150.00518.75
8.0.60.0110.00619.18
8.0.50.0110.00319.14
8.0.30.0130.00717.97
8.0.20.0140.00718.55
8.0.10.0140.00618.57
8.0.00.0140.00518.58
7.4.330.0060.00220.34
7.4.320.0070.00720.59
7.4.300.0110.00420.55
7.4.290.0110.00320.58
7.4.280.0110.00420.59
7.4.270.0110.00420.57
7.4.260.0130.00119.79
7.4.250.0110.00419.10
7.4.240.0100.00418.68
7.4.230.0130.00419.09
7.4.220.0080.00618.63
7.4.210.0090.00618.36
7.4.200.0080.00519.11
7.4.190.0120.00419.77
7.4.180.0130.00419.78
7.4.160.0150.00618.70
7.4.150.0170.00518.61
7.4.140.0130.00718.27
7.4.130.0140.00618.30
7.4.120.0160.00518.26
7.4.110.0170.00318.28
7.4.100.0140.00718.37
7.4.90.0170.00618.31
7.4.80.0140.00718.30
7.4.70.0100.00818.29
7.4.60.0120.00718.30
7.4.50.0120.00718.27
7.4.40.0130.00718.28
7.4.30.0140.00518.28
7.4.20.0120.00718.33
7.4.10.0150.00518.29
7.4.00.0120.00618.34
7.3.330.0090.00520.52
7.3.320.0080.00518.43
7.3.310.0100.00319.06
7.3.300.0080.00419.05
7.3.290.0100.00618.26
7.3.280.0110.00319.78
7.3.270.0150.00518.59
7.3.260.0120.00818.28
7.3.250.0130.00818.32
7.3.240.0130.00718.32
7.3.230.0160.00518.29
7.3.220.0130.00818.24
7.3.210.0160.00518.23
7.3.200.0130.00618.26
7.3.190.0120.00718.30
7.3.180.0140.00618.26
7.3.170.0140.00518.27
7.3.160.0120.00718.25
7.3.150.0140.00618.27
7.3.140.0120.00718.27
7.3.130.0150.00518.26
7.3.120.0100.00918.25
7.3.110.0130.00618.23
7.3.100.0120.00618.25
7.3.90.0120.00618.36
7.3.80.0130.00418.25
7.3.70.0130.00618.35
7.3.60.0120.00618.37
7.3.50.0110.00718.32
7.3.40.0100.00718.34
7.3.30.0120.00718.34
7.3.20.0240.00718.75
7.3.10.0210.00718.68
7.3.00.0150.00518.67
5.3.290.0140.00715.52

preferences:
55.88 ms | 1423 KiB | 5 Q