3v4l.org

run code in 300+ PHP versions simultaneously
<?php $age = 32; $birthday = new DateTimeImmutable('2020-04-30'); $today = new DateTime(); if ($today > $birthday) { $age++; } echo "I'm " . $age . " years old";

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.30.0110.00717.57
8.5.20.0070.01019.62
8.5.10.0100.00916.75
8.5.00.0090.01120.05
8.4.180.0160.01019.73
8.4.170.0130.00820.52
8.4.160.0150.00722.39
8.4.150.0080.00516.76
8.4.140.0130.00917.66
8.4.130.0090.00317.68
8.4.120.0100.00924.23
8.4.110.0080.01221.49
8.4.100.0030.00718.69
8.4.90.0140.00719.04
8.4.80.0120.00618.72
8.4.70.0090.00518.08
8.4.60.0110.00918.66
8.4.50.0080.01217.94
8.4.40.0100.01017.85
8.4.30.0110.00818.61
8.4.20.0130.00720.75
8.4.10.0100.01019.33
8.3.300.0110.00920.86
8.3.290.0140.00820.72
8.3.280.0100.00918.63
8.3.270.0130.00616.57
8.3.260.0090.00617.43
8.3.250.0090.00718.81
8.3.240.0110.00817.02
8.3.230.0140.00416.47
8.3.220.0090.01019.11
8.3.210.0050.00916.85
8.3.200.0030.00616.70
8.3.190.0100.00618.86
8.3.180.0120.00617.17
8.3.170.0060.01216.61
8.3.160.0120.00616.80
8.3.150.0090.00919.03
8.3.140.0000.00816.77
8.3.130.0040.00418.63
8.3.120.0080.01120.52
8.3.110.0070.01520.94
8.3.100.0040.00416.78
8.3.90.0000.00726.77
8.3.80.0030.00616.63
8.3.70.0110.00416.58
8.3.60.0070.01018.40
8.3.50.0090.00723.71
8.3.40.0100.01018.61
8.3.30.0120.00619.12
8.3.20.0060.00324.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.300.0130.00623.99
8.2.290.0120.00720.44
8.2.280.0060.00820.35
8.2.270.0130.00718.91
8.2.260.0150.00319.00
8.2.250.0030.00616.83
8.2.240.0060.00617.18
8.2.230.0060.00322.58
8.2.220.0080.00024.06
8.2.210.0030.00626.77
8.2.200.0060.00616.75
8.2.190.0120.00618.41
8.2.180.0100.01025.92
8.2.170.0040.01122.96
8.2.160.0110.00422.96
8.2.150.0000.00725.66
8.2.140.0040.01124.66
8.2.130.0040.00426.16
8.2.120.0030.00626.35
8.2.110.0030.00622.25
8.2.100.0060.00717.91
8.2.90.0030.00517.75
8.2.80.0000.00818.89
8.2.70.0090.00017.63
8.2.60.0040.00418.05
8.2.50.0050.00318.05
8.2.40.0040.00418.22
8.2.30.0000.00719.34
8.2.20.0050.00218.18
8.2.10.0040.00419.34
8.2.00.0030.00319.42
8.1.340.0140.00717.82
8.1.330.0040.00422.05
8.1.320.0140.00515.98
8.1.310.0000.00816.91
8.1.300.0130.00316.23
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0050.00523.77
8.1.230.0070.00422.11
8.1.220.0090.00017.91
8.1.210.0060.00318.77
8.1.200.0030.00617.60
8.1.190.0000.00917.35
8.1.180.0080.00018.10
8.1.170.0030.00519.29
8.1.160.0040.00420.87
8.1.150.0040.00418.93
8.1.140.0000.00718.92
8.1.130.0030.00320.04
8.1.120.0030.00517.67
8.1.110.0100.00017.54
8.1.100.0040.00417.53
8.1.90.0040.00417.52
8.1.80.0000.00817.63
8.1.70.0000.00717.68
8.1.60.0040.00417.60
8.1.50.0040.00417.64
8.1.40.0040.00417.70
8.1.30.0080.00017.79
8.1.20.0080.00017.66
8.1.10.0000.00717.61
8.1.00.0080.00017.73
8.0.300.0070.00018.77
8.0.290.0030.00616.88
8.0.280.0000.00718.50
8.0.270.0040.00418.19
8.0.260.0030.00318.42
8.0.250.0040.00417.16
8.0.240.0000.00717.07
8.0.230.0050.00317.13
8.0.220.0000.00717.03
8.0.210.0070.00016.95
8.0.200.0030.00317.13
8.0.190.0050.00317.03
8.0.180.0070.00017.11
8.0.170.0030.00617.13
8.0.160.0000.00717.08
8.0.150.0000.00817.05
8.0.140.0030.00516.97
8.0.130.0050.00013.39
8.0.120.0040.00417.07
8.0.110.0040.00416.90
8.0.100.0030.00416.91
8.0.90.0040.00416.98
8.0.80.0090.00617.09
8.0.70.0030.00317.19
8.0.60.0040.00416.96
8.0.50.0040.00416.88
8.0.30.0140.00717.11
8.0.20.0090.01517.38
8.0.10.0040.00417.02
8.0.00.0110.00616.78
7.4.330.0050.00015.55
7.4.320.0030.00316.64
7.4.300.0000.00616.63
7.4.290.0030.00516.54
7.4.280.0050.00316.76
7.4.270.0070.00016.71
7.4.260.0000.00513.38
7.4.250.0000.00816.60
7.4.240.0000.00716.75
7.4.230.0000.00716.64
7.4.220.0020.00516.63
7.4.210.0060.00816.74
7.4.200.0000.00716.77
7.4.130.0120.00816.62
7.4.120.0150.00316.61
7.4.110.0140.01016.64
7.4.100.0110.01116.54
7.4.90.0100.00616.82
7.4.80.0090.00919.39
7.4.70.0040.01216.75
7.4.60.0040.01116.54
7.4.50.0040.01216.55
7.4.40.0030.01316.55
7.4.30.0030.01316.62
7.4.20.0130.00316.63
7.4.10.0080.00916.84
7.4.00.0110.00616.73
7.3.330.0040.00416.25
7.3.320.0060.00013.07
7.3.310.0000.00716.33
7.3.300.0000.00616.43
7.3.290.0060.00816.42
7.3.280.0090.01316.45
7.3.260.0160.00716.50
7.3.230.0100.01016.51
7.3.210.0030.01416.61
7.3.200.0150.00616.75
7.3.190.0120.00616.70
7.3.180.0080.00816.60
7.3.170.0000.01616.48
7.3.160.0120.00416.73
7.3.150.0130.00316.63
7.3.140.0120.00616.64
7.3.130.0080.00816.48
7.3.120.0080.00816.51
7.3.110.0060.00916.48
7.3.100.0090.01216.55
7.3.90.0130.00316.43
7.3.80.0100.01016.55
7.3.70.0080.00816.59
7.3.60.0170.00016.41
7.3.50.0100.00616.56
7.3.40.0080.00816.48
7.3.30.0000.01616.57
7.3.20.0070.01016.55
7.3.10.0140.00416.51
7.3.00.0070.01516.52
7.2.330.0110.00716.98
7.2.320.0150.00316.70
7.2.310.0060.01416.60
7.2.300.0060.01216.71
7.2.290.0030.01316.75
7.2.280.0100.00716.89
7.2.270.0110.00716.77
7.2.260.0100.00716.80
7.2.250.0070.01016.89
7.2.240.0070.01116.91
7.2.230.0090.00916.74
7.2.220.0060.01016.85
7.2.210.0070.01016.99
7.2.200.0140.00316.79
7.2.190.0110.00616.78
7.2.180.0090.00816.71
7.2.170.0070.01016.76
7.2.160.0120.00416.66
7.2.150.0060.01116.64
7.2.140.0140.01016.72
7.2.130.0070.01016.72
7.2.120.0130.00316.64
7.2.110.0130.00316.84
7.2.100.0100.00716.76
7.2.90.0110.00716.82
7.2.80.0120.00616.88
7.2.70.0070.01016.88
7.2.60.0030.01416.81
7.2.50.0090.00916.78
7.2.40.0170.00016.86
7.2.30.0060.01216.79
7.2.20.0120.00616.84
7.2.10.0070.01016.77
7.2.00.0080.00816.81

preferences:
54.58 ms | 1474 KiB | 5 Q