3v4l.org

run code in 300+ PHP versions simultaneously
<?php function calendar_week_mod( $num ) { $base = 7; return ( $num - $base * floor( $num / $base ) ); } echo calendar_week_mod('asd');

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.4.130.0150.00817.75
8.4.120.0140.00424.23
8.4.110.0110.00822.40
8.4.100.0100.01117.84
8.4.90.0110.00820.59
8.4.80.0130.00624.09
8.4.70.0100.00920.50
8.4.60.0110.01022.18
8.4.50.0110.01018.64
8.4.40.0030.00517.97
8.4.30.0160.00318.81
8.4.20.0170.00318.80
8.4.10.0090.00022.22
8.3.260.0110.00816.49
8.3.250.0100.00919.02
8.3.240.0120.00717.05
8.3.230.0070.01316.57
8.3.220.0100.00919.01
8.3.210.0120.00718.60
8.3.200.0050.00416.57
8.3.190.0030.00517.39
8.3.180.0100.01218.94
8.3.170.0140.00418.68
8.3.160.0070.01117.23
8.3.150.0090.00917.01
8.3.140.0060.01316.62
8.3.130.0090.00618.53
8.3.120.0070.00720.63
8.3.110.0030.00720.94
8.3.100.0090.00024.06
8.3.90.0070.00326.77
8.3.80.0030.00718.68
8.3.70.0090.00616.58
8.3.60.0090.00918.43
8.3.50.0150.00318.43
8.3.40.0130.00620.52
8.3.30.0060.01018.91
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.290.0110.00720.57
8.2.280.0110.00820.15
8.2.270.0120.00617.14
8.2.260.0170.00016.90
8.2.250.0060.00318.47
8.2.240.0070.00417.26
8.2.230.0040.00422.58
8.2.220.0080.00837.54
8.2.210.0000.01726.77
8.2.200.0000.00916.50
8.2.190.0060.01216.63
8.2.180.0100.00725.92
8.2.170.0090.00618.91
8.2.160.0030.01422.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0070.00320.99
8.2.100.0110.00017.72
8.2.90.0060.00317.75
8.2.80.0060.00318.91
8.2.70.0040.00417.75
8.2.60.0040.00417.63
8.2.50.0040.00418.05
8.2.40.0000.00718.22
8.2.30.0030.00617.94
8.2.20.0040.00419.30
8.2.10.0040.00418.02
8.2.00.0050.00321.07
8.1.330.0030.00522.14
8.1.320.0110.00718.13
8.1.310.0080.00016.60
8.1.300.0070.01118.17
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0000.00824.66
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0100.00721.30
8.1.230.0000.01122.24
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0040.00419.02
8.1.150.0040.00418.48
8.1.140.0070.00017.31
8.1.130.0000.00717.41
8.1.120.0030.00717.39
8.1.110.0000.00717.36
8.1.100.0080.00317.27
8.1.90.0050.00517.34
8.1.80.0100.00517.42
8.1.70.0120.00417.27
8.1.60.0110.00017.41
8.1.50.0000.00817.38
8.1.40.0120.00317.51
8.1.30.0110.00017.27
8.1.20.0070.00217.59
8.1.10.0050.00517.53
8.1.00.0050.00517.33
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0080.00018.50
8.0.270.0040.00416.93
8.0.260.0030.00316.77
8.0.250.0000.00716.92
8.0.240.0000.00716.94
8.0.230.0000.00916.96
8.0.220.0080.00516.70
8.0.210.0110.00316.95
8.0.200.0100.00516.85
8.0.190.0070.00716.97
8.0.180.0140.00016.82
8.0.170.0130.00516.84
8.0.160.0110.00416.87
8.0.150.0090.00216.69
8.0.140.0050.00916.87
8.0.130.0130.00316.83
8.0.120.0120.00216.84
8.0.110.0040.01116.77
8.0.100.0080.00516.79
8.0.90.0090.00616.77
8.0.80.0090.00616.85
8.0.70.0140.00016.70
8.0.60.0120.00416.73
8.0.50.0130.00016.73
8.0.30.0110.00316.78
8.0.20.0050.00916.76
8.0.10.0090.00416.90
7.4.330.0020.00215.55
7.4.320.0050.00216.53
7.4.300.0120.00316.57
7.4.290.0000.01316.41
7.4.280.0030.00316.57
7.4.270.0000.00816.46
7.4.260.0070.00316.46
7.4.250.0030.01016.40
7.4.240.0100.00016.59
7.4.230.0050.00516.40
7.4.220.0000.00916.20
7.4.210.0090.00016.42
7.4.200.0080.00416.32
7.4.190.0000.01016.17
7.4.180.0050.00516.65
7.4.160.0050.00516.47
7.4.150.0050.00516.50
7.4.140.0030.00716.27
7.4.130.0110.00016.32
7.4.120.0030.00716.29
7.4.110.0070.00416.34
7.4.100.0070.00416.58
7.4.90.0030.00716.51
7.4.80.0060.00416.43
7.4.70.0050.00516.44
7.4.60.0070.00316.27
7.4.50.0050.00516.39
7.4.40.0120.00016.49
7.4.30.0130.00216.34
7.4.20.0130.00216.41
7.4.10.0070.00416.56
7.4.00.0070.00216.37

preferences:
111.54 ms | 403 KiB | 5 Q