3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateSplitter = explode('-','1987-02-15'); $today = getDate(); $monDiff = $today['mon'] - $dateSplitter[1]; $dayDiff = $today['mday'] - $dateSplitter[2]; $yearDiff = $today['year'] - $dateSplitter[0]; $age = ($monDiff > 0 || ($monDiff == 0 && $dayDiff >= 0)) ? ($yearDiff) : ($yearDiff - 1); echo $age;

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.40.0090.00618.77
8.3.30.0070.00718.92
8.3.20.0090.00620.73
8.3.10.0050.00321.09
8.3.00.0000.00819.80
8.2.170.0070.00722.96
8.2.160.0000.01320.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00021.00
8.2.110.0050.00522.09
8.2.100.0090.00319.79
8.2.90.0000.00817.88
8.2.80.0000.00818.98
8.2.70.0000.00817.74
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0040.00319.38
8.2.20.0070.00017.98
8.2.10.0040.00417.82
8.2.00.0000.00918.01
8.1.270.0000.00923.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00620.85
8.1.230.0080.00417.89
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0060.00317.36
8.1.190.0000.00717.47
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0050.00318.93
8.1.150.0040.00418.66
8.1.140.0040.00417.50
8.1.130.0070.00017.82
8.1.120.0030.00717.60
8.1.110.0080.00017.56
8.1.100.0080.00017.63
8.1.90.0000.00717.60
8.1.80.0000.00717.55
8.1.70.0040.00417.45
8.1.60.0070.00317.66
8.1.50.0040.00417.51
8.1.40.0000.00817.43
8.1.30.0000.00817.70
8.1.20.0080.00017.60
8.1.10.0060.00317.66
8.1.00.0040.00417.70
8.0.300.0070.00318.78
8.0.290.0000.00716.75
8.0.280.0030.00318.51
8.0.270.0040.00217.25
8.0.260.0000.00816.89
8.0.250.0000.00717.18
8.0.240.0040.00417.15
8.0.230.0070.00017.12
8.0.220.0040.00417.08
8.0.210.0000.00716.98
8.0.200.0070.00017.18
8.0.190.0050.00217.18
8.0.180.0040.00417.13
8.0.170.0030.00317.08
8.0.160.0000.00717.11
8.0.150.0040.00316.90
8.0.140.0000.00816.95
8.0.130.0040.00413.45
8.0.120.0080.00016.98
8.0.110.0040.00417.11
8.0.100.0000.00917.08
8.0.90.0000.00816.93
8.0.80.0030.01217.08
8.0.70.0040.00416.92
8.0.60.0040.00416.89
8.0.50.0040.00417.20
8.0.30.0090.01117.21
8.0.20.0110.01017.40
8.0.10.0000.00717.30
8.0.00.0120.00616.79
7.4.330.0030.00316.67
7.4.320.0030.00616.65
7.4.300.0000.00616.68
7.4.290.0000.00716.73
7.4.280.0100.00016.35
7.4.270.0030.00316.57
7.4.260.0000.00513.30
7.4.250.0080.00016.61
7.4.240.0070.00016.73
7.4.230.0040.00416.71
7.4.220.0060.01316.44
7.4.210.0080.00716.66
7.4.200.0030.00316.56
7.4.190.0000.00816.64
7.4.160.0090.01216.74
7.4.150.0280.02517.40
7.4.140.0110.00617.86
7.4.130.0090.01216.79
7.4.120.0120.00916.70
7.4.110.0150.00316.63
7.4.100.0030.01516.72
7.4.90.0130.01016.63
7.4.80.0030.01419.39
7.4.70.0040.01216.52
7.4.60.0070.01116.58
7.4.50.0000.00816.50
7.4.40.0090.00922.77
7.4.30.0180.00316.57
7.4.10.0060.00916.46
7.4.00.0080.00915.66
7.3.330.0020.00213.26
7.3.320.0020.00213.29
7.3.310.0070.00016.21
7.3.300.0030.00316.45
7.3.290.0040.01116.29
7.3.280.0100.00616.35
7.3.270.0030.01417.40
7.3.260.0060.01318.24
7.3.250.0100.00616.43
7.3.240.0130.00316.29
7.3.230.0090.00616.84
7.3.210.0120.00416.46
7.3.200.0140.00419.39
7.3.190.0150.00316.47
7.3.180.0030.01416.69
7.3.170.0090.00616.63
7.3.160.0090.00916.66
7.3.130.0060.00916.50
7.3.120.0030.01315.73
7.3.110.0030.01216.48
7.3.100.0110.00416.61
7.3.90.0030.01316.40
7.3.80.0030.01016.64
7.3.70.0100.00716.29
7.3.60.0080.00716.25
7.3.50.0050.01516.42
7.3.40.0120.00616.18
7.3.30.0130.00816.54
7.3.20.0110.01418.17
7.3.10.0200.00418.20
7.3.00.0080.01117.36
7.2.330.0120.00616.45
7.2.320.0060.01216.44
7.2.310.0090.01316.95
7.2.300.0070.01016.55
7.2.290.0040.01216.82
7.2.260.0160.00316.53
7.2.250.0070.01116.42
7.2.240.0000.01516.89
7.2.230.0040.01416.54
7.2.220.0040.01116.84
7.2.210.0030.01316.89
7.2.200.0090.00616.71
7.2.190.0030.00916.61
7.2.180.0130.00616.61
7.2.170.0030.01616.63
7.2.160.0090.01216.54
7.2.150.0120.01218.59
7.2.140.0050.01818.44
7.2.130.0130.00517.62
7.2.120.0130.00817.74
7.2.110.0050.01517.71
7.2.100.0100.00917.59
7.2.90.0030.01217.64
7.2.80.0050.01017.63
7.2.70.0040.00917.53
7.2.60.0110.00917.63
7.2.50.0100.00917.76
7.2.40.0120.00717.63
7.2.30.0040.01117.71
7.2.20.0070.00717.57
7.2.10.0080.01117.69
7.2.00.0070.00718.22
7.1.330.0030.01417.40
7.1.320.0000.01017.14
7.1.310.0090.00917.22
7.1.300.0030.01017.18
7.1.290.0040.01417.41
7.1.280.0080.01517.44
7.1.270.0070.01417.31
7.1.260.0130.00917.21
7.1.250.0130.00516.41
7.1.240.0080.00716.69
7.1.230.0090.00916.52
7.1.220.0100.00716.65
7.1.210.0090.00316.40
7.1.200.0110.00516.42
7.1.190.0090.00516.50
7.1.180.0100.00716.63
7.1.170.0050.01216.43
7.1.160.0100.00816.64
7.1.150.0070.00916.54
7.1.140.0090.00616.57
7.1.130.0090.00716.55
7.1.120.0120.00516.54
7.1.110.0090.00516.71
7.1.100.0030.01017.15
7.1.90.0070.01116.63
7.1.80.0050.00716.45
7.1.70.0040.00916.88
7.1.60.0080.00716.79
7.1.50.0100.00716.70
7.1.40.0050.01016.61
7.1.30.0120.00816.57
7.1.20.0120.00516.36
7.1.10.0020.01516.51
7.1.00.0070.02118.47
7.0.330.0140.00416.20
7.0.320.0090.00916.25
7.0.310.0080.00816.19
7.0.300.0070.00816.14
7.0.290.0120.00416.36
7.0.280.0110.00516.41
7.0.270.0130.00616.24
7.0.260.0110.00716.16
7.0.250.0100.00516.26
7.0.240.0100.00616.29
7.0.230.0080.01016.29
7.0.220.0120.00516.43
7.0.210.0070.00815.99
7.0.200.0090.00716.43
7.0.190.0100.00916.04
7.0.180.0080.01116.17
7.0.170.0080.00816.16
7.0.160.0070.01016.37
7.0.150.0070.01016.39
7.0.140.0060.02818.17
7.0.130.0100.00616.30
7.0.120.0070.00816.27
7.0.110.0090.00716.17
7.0.100.0090.02217.46
7.0.90.0090.02117.44
7.0.80.0140.02917.41
7.0.70.0100.03117.44
7.0.60.0100.02717.42
7.0.50.0150.03017.62
7.0.40.0030.03716.25
7.0.30.0080.03016.18
7.0.20.0070.02916.21
7.0.10.0050.03416.11
7.0.00.0040.02916.23
5.6.400.0170.00716.14
5.6.390.0130.01315.90
5.6.380.0070.01215.30
5.6.370.0050.01015.32
5.6.360.0060.00615.12
5.6.350.0050.00915.40
5.6.340.0080.00815.19
5.6.330.0050.01015.26
5.6.320.0080.00815.33
5.6.310.0050.01015.18
5.6.300.0060.00715.14
5.6.290.0060.01115.22
5.6.280.0060.03117.25
5.6.270.0100.00615.24
5.6.260.0000.01715.13
5.6.250.0100.02817.04
5.6.240.0060.03416.82
5.6.230.0090.03116.81
5.6.220.0070.03616.91
5.6.210.0040.03416.86
5.6.200.0040.03017.03
5.6.190.0070.03417.21
5.6.180.0070.03217.03
5.6.170.0070.03016.98
5.6.160.0090.03317.09
5.6.150.0050.02317.04
5.6.140.0060.03717.07
5.6.130.0100.02917.11
5.6.120.0090.03317.10
5.6.110.0050.03417.02
5.6.100.0110.03017.04
5.6.90.0080.03217.14
5.6.80.0070.03016.87
5.6.70.0090.03016.90
5.6.60.0070.03116.89
5.6.50.0050.02316.88
5.6.40.0070.03016.85
5.6.30.0080.03116.75
5.6.20.0080.02516.80
5.6.10.0040.02716.79
5.6.00.0090.03016.82
5.5.380.0080.03315.68
5.5.370.0080.03015.78
5.5.360.0070.03115.86
5.5.350.0090.03015.86
5.5.340.0080.02815.96
5.5.330.0050.03215.92
5.5.320.0080.03015.85
5.5.310.0060.02515.84
5.5.300.0010.03515.90
5.5.290.0070.02615.89
5.5.280.0070.03015.95
5.5.270.0060.01715.87
5.5.260.0080.02915.95
5.5.250.0040.02015.77
5.5.240.0100.02515.51
5.5.230.0070.03015.60
5.5.220.0050.03215.72
5.5.210.0060.03015.66
5.5.200.0130.02415.68
5.5.190.0070.02515.63
5.5.180.0040.02115.55
5.5.170.0090.00513.41
5.5.160.0070.02815.63
5.5.150.0050.02915.74
5.5.140.0050.03615.50
5.5.130.0050.03515.75
5.5.120.0050.03315.50
5.5.110.0100.02915.76
5.5.100.0090.02715.51
5.5.90.0040.02215.64
5.5.80.0100.03015.65
5.5.70.0090.02515.75
5.5.60.0080.02815.62
5.5.50.0080.02815.65
5.5.40.0080.01815.42
5.5.30.0070.02515.62
5.5.20.0140.01115.61
5.5.10.0060.03115.59
5.5.00.0050.03215.67
5.4.450.0060.02914.30
5.4.440.0060.02814.36
5.4.430.0020.03314.43
5.4.420.0030.02114.45
5.4.410.0030.01914.21
5.4.400.0100.02714.24
5.4.390.0050.03114.09
5.4.380.0060.03014.27
5.4.370.0050.02414.14
5.4.360.0040.01714.19
5.4.350.0040.02814.13
5.4.340.0030.03114.24
5.4.330.0030.00811.70
5.4.320.0030.03314.17
5.4.310.0060.02814.13
5.4.300.0020.03314.21
5.4.290.0010.03314.37
5.4.280.0030.02914.33
5.4.270.0060.02914.23
5.4.260.0050.03014.30
5.4.250.0110.02614.14
5.4.240.0030.02814.27
5.4.230.0050.01614.22
5.4.220.0040.03214.31
5.4.210.0040.03014.23
5.4.200.0090.02614.29
5.4.190.0060.02614.35
5.4.180.0070.02914.33
5.4.170.0040.03214.33
5.4.160.0050.02814.27
5.4.150.0060.03214.12
5.4.140.0040.02313.38
5.4.130.0040.02913.50
5.4.120.0040.03013.37
5.4.110.0060.02713.36
5.4.100.0060.02913.31
5.4.90.0060.02413.26
5.4.80.0070.02813.30
5.4.70.0050.03013.33
5.4.60.0020.02813.27
5.4.50.0060.02613.39
5.4.40.0060.02913.30
5.4.30.0060.02913.33
5.4.20.0040.02613.25
5.4.10.0070.02613.34
5.4.00.0040.02213.18
5.3.290.0060.02812.88
5.3.280.0060.02212.76
5.3.270.0060.02912.88
5.3.260.0060.02312.70
5.3.250.0080.03012.79
5.3.240.0110.02612.70
5.3.230.0040.02912.72
5.3.220.0090.02712.62
5.3.210.0090.02612.55
5.3.200.0080.02712.65
5.3.190.0060.02712.55
5.3.180.0080.01512.79
5.3.170.0080.02512.85
5.3.160.0070.02612.82
5.3.150.0070.03012.85
5.3.140.0070.02712.71
5.3.130.0020.03412.66
5.3.120.0090.03012.60
5.3.110.0130.02412.64
5.3.100.0050.02412.50
5.3.90.0110.02612.45
5.3.80.0090.02512.42
5.3.70.0110.02712.49
5.3.60.0060.03012.48
5.3.50.0090.02812.48
5.3.40.0070.02812.48
5.3.30.0100.02512.54
5.3.20.0060.02912.35
5.3.10.0040.02612.26
5.3.00.0050.02212.23
5.2.170.0060.03310.39
5.2.160.0030.03010.49
5.2.150.0030.02810.26
5.2.140.0030.02610.30
5.2.130.0020.03110.25
5.2.120.0010.03310.15
5.2.110.0020.02710.32
5.2.100.0030.03010.25
5.2.90.0040.01810.27
5.2.80.0040.02910.23
5.2.70.0080.03110.25
5.2.60.0020.02510.26
5.2.50.0060.02810.22
5.2.40.0030.03110.24
5.2.30.0050.03110.04
5.2.20.0040.01810.11
5.2.10.0030.03310.03
5.2.00.0060.02810.07
5.1.60.0020.0289.32
5.1.50.0020.0319.32
5.1.40.0060.0289.39
5.1.30.0060.0299.62
5.1.20.0000.0309.43
5.1.10.0030.0299.31
5.1.00.0050.0289.42
5.0.50.0030.0208.47
5.0.40.0060.0138.29
5.0.30.0020.0208.21
5.0.20.0030.0218.31
5.0.10.0050.0168.29
5.0.00.0000.0368.24
4.4.90.0000.0208.16
4.4.80.0040.0178.16
4.4.70.0000.0208.16
4.4.60.0030.0138.16
4.4.50.0000.0218.16
4.4.40.0030.0308.16
4.4.30.0020.0208.16
4.4.20.0050.0168.16
4.4.10.0020.0178.16
4.4.00.0020.0268.16
4.3.110.0020.0158.16
4.3.100.0010.0108.16
4.3.90.0000.0208.16
4.3.80.0020.0178.16
4.3.70.0020.0158.16
4.3.60.0050.0178.16
4.3.50.0030.0158.16
4.3.40.0020.0278.16
4.3.30.0000.0178.16
4.3.20.0020.0208.16
4.3.10.0020.0188.16
4.3.00.0050.0168.16

preferences:
43.57 ms | 400 KiB | 5 Q