3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_marko_age($birthday) { $today= time(); $age = ($today - $birthday)/(60*60*24*365); $float_value_of_age = floor($age); return $float_value_of_age; } echo "My name is Marko and I am <strong>"; echo get_marko_age('1985-01-09'); // here to change date and it automatically show number of years echo "</strong> 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)
7.3.120.0000.01314.97
7.3.110.0030.01315.00
7.3.100.0080.00814.82
7.3.90.0040.01114.91
7.3.80.0030.00914.61
7.3.70.0030.00714.69
7.3.60.0060.00614.75
7.3.50.0000.01414.87
7.3.40.0150.00014.72
7.3.30.0100.00314.92
7.3.20.0070.00716.73
7.3.10.0070.01016.72
7.3.00.0040.00816.81
7.2.240.0090.00615.26
7.2.230.0030.01414.59
7.2.220.0070.00715.21
7.2.210.0090.00614.98
7.2.200.0030.00614.93
7.2.190.0030.01214.75
7.2.180.0080.00815.05
7.2.170.0000.01715.06
7.2.160.0040.01514.89
7.2.150.0060.00916.73
7.2.140.0040.01216.65
7.2.130.0030.00616.77
7.2.120.0100.00717.00
7.2.110.0000.01616.88
7.2.100.0100.00716.99
7.2.90.0030.00917.08
7.2.80.0060.00716.82
7.2.70.0090.00616.98
7.2.60.0030.01016.94
7.2.50.0040.00717.02
7.2.40.0090.00916.82
7.2.30.0040.01416.86
7.2.20.0100.00316.81
7.2.10.0070.01016.65
7.2.00.0000.01118.13
7.1.330.0000.01315.58
7.1.320.0000.01015.58
7.1.310.0090.00315.69
7.1.300.0000.00915.73
7.1.290.0000.00915.66
7.1.280.0050.00315.66
7.1.270.0070.01015.72
7.1.260.0080.00415.85
7.1.250.0140.00015.90
7.1.200.0090.00315.65
7.1.100.0130.00717.90
7.1.70.0060.00617.07
7.1.60.0040.02120.03
7.1.50.0130.00916.92
7.1.00.0100.06722.35
7.0.200.0290.00416.68
7.0.100.0000.09319.95
7.0.90.0070.07020.13
7.0.80.0270.06319.88
7.0.70.0130.07719.94
7.0.60.0030.04319.95
7.0.50.0000.09320.32
7.0.40.0200.06020.08
7.0.30.0070.08720.17
7.0.20.0100.05719.94
7.0.10.0030.07720.15
7.0.00.0200.07719.95
5.6.280.0000.07721.00
5.6.250.0000.07720.78
5.6.240.0070.08320.64
5.6.230.0070.08320.54
5.6.220.0100.08020.61
5.6.210.0070.05720.65
5.6.200.0100.08021.05
5.6.190.0070.08321.05
5.6.180.0070.07021.12
5.6.170.0070.07720.94
5.6.160.0030.08721.14
5.6.150.0070.05321.09
5.6.140.0000.09021.07
5.6.130.0130.08021.02
5.6.120.0100.08321.01
5.6.110.0070.08021.06
5.6.100.0030.08021.02
5.6.90.0030.05020.94
5.6.80.0130.06720.40
5.6.70.0000.04320.42
5.6.60.0100.07320.32
5.6.50.0070.09320.44
5.6.40.0070.05020.31
5.6.30.0030.04320.39
5.6.20.0100.07720.37
5.6.10.0100.07720.43
5.6.00.0070.08020.42
5.5.380.0100.06320.45
5.5.370.0170.07320.57
5.5.360.0070.07720.56
5.5.350.0070.06720.39
5.5.340.0030.08020.80
5.5.330.0070.08020.88
5.5.320.0070.06720.86
5.5.310.0000.06320.91
5.5.300.0070.08020.87
5.5.290.0170.07020.74
5.5.280.0030.08320.91
5.5.270.0070.08020.73
5.5.260.0100.04720.79
5.5.250.0170.07020.66
5.5.240.0030.05720.30
5.5.230.0070.08320.17
5.5.220.0030.05720.02
5.5.210.0030.07720.20
5.5.200.0070.06720.24
5.5.190.0170.07020.09
5.5.180.0170.07020.15
5.5.160.0130.07020.15
5.5.150.0130.07020.18
5.5.140.0100.07320.18
5.5.130.0130.07319.99
5.5.120.0030.08320.23
5.5.110.0100.04720.24
5.5.100.0070.08320.06
5.5.90.0030.08320.13
5.5.80.0070.04720.10
5.5.70.0070.08020.03
5.5.60.0030.08020.06
5.5.50.0130.06320.06
5.5.40.0130.06720.08
5.5.30.0000.09020.08
5.5.20.0100.07719.93
5.5.10.0000.06720.03
5.5.00.0100.04020.13
5.4.450.0200.06719.45
5.4.440.0100.07719.38
5.4.430.0070.07319.17
5.4.420.0030.08019.48
5.4.410.0070.06319.22
5.4.400.0070.03719.02
5.4.390.0070.05019.09
5.4.380.0200.04319.18
5.4.370.0100.06319.23
5.4.360.0030.06318.88
5.4.350.0130.07019.16
5.4.340.0030.08018.95
5.4.320.0000.08318.86
5.4.310.0030.08019.09
5.4.300.0170.06719.04
5.4.290.0100.08019.22
5.4.280.0070.07319.16
5.4.270.0030.05319.04
5.4.260.0100.05018.84
5.4.250.0030.07719.19
5.4.240.0070.06719.02
5.4.230.0000.06318.84
5.4.220.0070.05319.05
5.4.210.0030.07319.13
5.4.200.0030.07719.20
5.4.190.0100.07019.11
5.4.180.0100.06019.12
5.4.170.0030.05719.03
5.4.160.0070.06718.83
5.4.150.0030.08318.83
5.4.140.0100.07016.46
5.4.130.0030.07316.34
5.4.120.0230.05016.45
5.4.110.0000.04016.45
5.4.100.0070.07016.43
5.4.90.0030.05316.47
5.4.80.0070.07716.25
5.4.70.0170.04316.38
5.4.60.0030.06716.43
5.4.50.0070.07016.31
5.4.40.0130.07016.42
5.4.30.0030.06716.36
5.4.20.0000.07716.29
5.4.10.0030.08016.47
5.4.00.0070.07315.89

preferences:
38.62 ms | 400 KiB | 5 Q