3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = str_pad(intval(strval("0219")), 4, 0, STR_PAD_LEFT); $test2 = str_pad(intval(date('my')), 4, 0, STR_PAD_LEFT); $test3 = intval(strval("0717")); $test4 = intval(date('my')); $time1 = mktime(1, 1, 1, intval("08"), 1, intval("17")); $time2 = mktime(1, 1, 1, intval(date('m')), 1, intval(date('y'))); echo $time1; echo "<br/>"; echo $time2; $toto = "0919"; $expiration_time = mktime(1, 1, 1, intval(substr($toto->expiration_date, 0, 2)), 1, intval(substr($toto->expiration_date, 2, 2))); $current_time = mktime(1, 1, 1, intval(date('m')), 1, intval(date('y'))); if ($expiration_time < $current_time){ echo "KO"; } else{ echo "OK"; } ?>

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.60.0090.00616.63
8.3.50.0080.00616.38
8.3.40.0150.00618.67
8.3.30.0070.00718.60
8.3.20.0040.00420.35
8.3.10.0000.00821.66
8.3.00.0050.00317.84
8.2.180.0040.01116.63
8.2.170.0070.00722.96
8.2.160.0100.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00621.04
8.2.120.0040.00426.35
8.2.110.0070.00320.25
8.2.100.0060.00617.97
8.2.90.0050.00319.17
8.2.80.0040.00418.05
8.2.70.0030.00617.63
8.2.60.0000.00818.03
8.2.50.0000.00818.10
8.2.40.0050.00320.45
8.2.30.0030.00621.09
8.2.20.0000.00818.14
8.2.10.0050.00318.27
8.2.00.0030.00518.23
8.1.280.0100.00725.92
8.1.270.0050.00223.96
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0030.00622.05
8.1.230.0040.00819.36
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0040.00418.45
8.1.160.0040.00419.16
8.1.150.0000.00720.67
8.1.140.0000.00819.64
8.1.130.0030.00318.86
8.1.120.0000.00717.59
8.1.110.0000.00717.51
8.1.100.0000.00817.63
8.1.90.0020.00517.65
8.1.80.0040.00417.63
8.1.70.0000.00717.61
8.1.60.0000.00817.61
8.1.50.0040.00417.61
8.1.40.0040.00417.52
8.1.30.0000.00817.73
8.1.20.0050.00317.57
8.1.10.0000.00917.67
8.1.00.0000.00817.50
8.0.300.0070.00018.77
8.0.290.0000.00816.88
8.0.280.0070.00018.63
8.0.270.0080.00017.27
8.0.260.0040.00416.95
8.0.250.0030.00317.21
8.0.240.0090.00317.10
8.0.230.0000.00817.13
8.0.220.0030.00317.11
8.0.210.0030.00317.01
8.0.200.0050.00317.07
8.0.190.0040.00417.00
8.0.180.0040.00417.09
8.0.170.0000.00716.98
8.0.160.0000.00717.14
8.0.150.0070.00016.98
8.0.140.0030.00516.91
8.0.130.0000.00513.38
8.0.120.0020.00516.98
8.0.110.0050.00217.01
8.0.100.0000.00716.98
8.0.90.0000.00717.02
8.0.80.0160.00017.09
8.0.70.0040.00417.03
8.0.60.0040.00417.02
8.0.50.0050.00216.99
8.0.30.0090.01017.24
8.0.20.0090.00917.40
8.0.10.0050.00317.17
8.0.00.0090.00917.13
7.4.330.0030.00315.55
7.4.320.0000.00716.61
7.4.300.0000.00716.56
7.4.290.0060.00616.46
7.4.280.0000.00816.72
7.4.270.0040.00416.65
7.4.260.0030.00313.36
7.4.250.0090.00016.55
7.4.240.0050.00316.62
7.4.230.0030.00316.70
7.4.220.0030.01416.61
7.4.210.0050.01016.66
7.4.200.0000.00716.40
7.4.160.0080.01016.73
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0160.00316.68
7.4.120.0090.01016.88
7.4.110.0150.00916.63
7.4.100.0080.00916.51
7.4.90.0130.00316.53
7.4.80.0140.00419.39
7.4.70.0060.01016.87
7.4.60.0130.00316.51
7.4.50.0030.00916.61
7.4.40.0100.00716.73
7.4.30.0040.01116.89
7.4.00.0050.01215.37
7.3.330.0020.00213.26
7.3.320.0030.00313.30
7.3.310.0000.00716.23
7.3.300.0030.00516.44
7.3.290.0000.00716.49
7.3.280.0090.00716.41
7.3.270.0100.01017.40
7.3.260.0060.01116.66
7.3.250.0130.00616.47
7.3.240.0060.01116.59
7.3.230.0120.00616.75
7.3.210.0140.00716.54
7.3.200.0060.01216.86
7.3.190.0070.01116.68
7.3.180.0070.00816.42
7.3.170.0080.00816.52
7.3.160.0120.00316.36
7.3.120.0040.01514.91
7.3.110.0090.00914.95
7.3.100.0120.00614.99
7.3.90.0090.00914.98
7.3.80.0060.00615.09
7.3.70.0070.00714.71
7.3.60.0090.00614.96
7.3.50.0050.00514.89
7.3.40.0120.00415.00
7.3.30.0030.01314.89
7.3.20.0060.00916.68
7.3.10.0040.00916.67
7.3.00.0000.01316.83
7.2.330.0150.00316.58
7.2.320.0130.00816.55
7.2.310.0060.01116.78
7.2.300.0140.01016.55
7.2.290.0080.00816.58
7.2.250.0070.01115.04
7.2.240.0100.00714.82
7.2.230.0070.00714.96
7.2.220.0000.01415.38
7.2.210.0150.00315.11
7.2.200.0060.00915.08
7.2.190.0040.00815.22
7.2.180.0110.00414.90
7.2.170.0070.01015.26
7.2.160.0040.00814.99
7.2.150.0070.01017.05
7.2.140.0070.00716.87
7.2.130.0000.01316.75
7.2.120.0060.00917.04
7.2.110.0070.01016.76
7.2.100.0060.00616.82
7.2.90.0030.01016.95
7.2.80.0030.00716.96
7.2.70.0030.00716.93
7.2.60.0050.00917.15
7.2.50.0030.00716.84
7.2.40.0110.00416.82
7.2.30.0110.00417.09
7.2.20.0000.01417.14
7.2.10.0100.00716.70
7.2.00.0060.00918.23
7.1.330.0070.01015.79
7.1.320.0090.00616.05
7.1.310.0070.01115.75
7.1.300.0070.00715.76
7.1.290.0090.00916.01
7.1.280.0030.01015.59
7.1.270.0000.00915.73
7.1.260.0030.01415.55
7.1.250.0060.00915.98
7.1.240.0040.00715.85
7.1.230.0070.00415.88
7.1.220.0090.00616.00
7.1.210.0080.00815.61
7.1.200.0090.01015.76
7.1.190.0030.00915.67
7.1.180.0030.01015.73
7.1.170.0090.00015.89
7.1.160.0000.01415.69
7.1.150.0000.00915.71
7.1.140.0030.01116.07
7.1.130.0060.00615.64
7.1.120.0080.00416.00
7.1.110.0060.00616.03
7.1.100.0070.00517.13
7.1.90.0040.00815.82
7.1.80.0090.00316.00
7.1.70.0080.00716.70
7.1.60.0150.00725.38
7.1.50.0090.01125.29
7.1.40.0130.01125.15
7.1.30.0090.01525.20
7.1.20.0090.01425.38
7.1.10.0050.01216.39
7.1.00.0010.01216.47
7.0.330.0090.00315.37
7.0.320.0070.00715.38
7.0.310.0110.00615.36
7.0.300.0050.00515.23
7.0.290.0030.01015.40
7.0.280.0030.00615.48
7.0.270.0000.01415.54
7.0.260.0030.00915.41
7.0.250.0040.00415.73
7.0.240.0070.00715.56
7.0.230.0030.00615.56
7.0.220.0000.01215.35
7.0.210.0040.00815.73
7.0.200.0020.01116.25
7.0.190.0030.01216.13
7.0.180.0040.01215.84
7.0.170.0090.00716.02
7.0.160.0030.01115.92
7.0.150.0090.00716.06
7.0.140.0030.01015.77
7.0.130.0100.00616.05
7.0.120.0050.00816.01
7.0.110.0040.01115.99
7.0.100.0040.00816.11
7.0.90.0070.00715.79
7.0.80.0050.01016.03
7.0.70.0040.01215.87
7.0.60.0070.01015.83
7.0.50.0050.00815.92
7.0.40.0010.01315.10
7.0.30.0030.01214.91
7.0.20.0080.00615.09
7.0.10.0050.01014.85
7.0.00.0070.00715.17
5.6.400.0030.01414.34
5.6.390.0030.00914.20
5.6.380.0040.00414.03
5.6.370.0070.00414.37
5.6.360.0080.00814.65
5.6.350.0000.01714.64
5.6.340.0060.00614.70
5.6.330.0070.01014.58
5.6.320.0030.00714.25
5.6.310.0000.01114.55
5.6.300.0070.00714.24
5.6.290.0070.00714.68
5.6.280.0090.00614.56
5.6.270.0000.01414.32
5.6.260.0100.00714.36
5.6.250.0030.00614.70
5.6.240.0060.00614.34
5.6.230.0000.01414.50
5.6.220.0040.01414.51
5.6.210.0060.00614.61
5.6.200.0070.00414.27
5.6.190.0060.00914.34
5.6.180.0000.01114.49
5.6.170.0090.00314.15
5.6.160.0040.01414.37
5.6.150.0040.01414.31
5.6.140.0070.01014.23
5.6.130.0060.01214.38
5.6.120.0120.00314.28
5.6.110.0060.01214.49
5.6.100.0030.00714.45
5.6.90.0120.00314.50
5.6.80.0120.00314.24
5.6.70.0060.00914.57
5.6.60.0100.00314.45
5.6.50.0030.01214.20
5.6.40.0000.01614.33
5.6.30.0040.01114.16
5.6.20.0030.01314.45
5.6.10.0030.00614.39
5.6.00.0000.01114.30

preferences:
47.42 ms | 400 KiB | 5 Q