3v4l.org

run code in 300+ PHP versions simultaneously
<?php +var_dump(intdiv(3, 2)); +var_dump(intdiv(-3, 2)); +var_dump(intdiv(3, -2)); +var_dump(intdiv(-3, -2)); +var_dump(intdiv(PHP_INT_MAX, PHP_INT_MAX)); +var_dump(intdiv(-PHP_INT_MAX - 1, -PHP_INT_MAX - 1)); +var_dump(intdiv(-PHP_INT_MAX - 1, -1)); +var_dump(intdiv(1, 0));

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.20.0120.00617.63
8.4.10.0100.01017.70
8.3.150.0070.01117.29
8.3.140.0040.00416.73
8.3.130.0050.00316.59
8.3.120.0090.00018.86
8.3.110.0000.00820.94
8.3.100.0000.01924.06
8.3.90.0030.00726.77
8.3.80.0080.00416.63
8.3.70.0070.01116.58
8.3.60.0100.01018.39
8.3.50.0070.01121.98
8.3.40.0120.00318.76
8.3.30.0110.00419.08
8.3.20.0060.00320.19
8.3.10.0080.00021.66
8.3.00.0090.00019.14
8.2.270.0120.00617.30
8.2.260.0030.00616.62
8.2.250.0030.00516.90
8.2.240.0060.01217.13
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0090.00626.77
8.2.200.0030.00616.88
8.2.190.0070.01116.63
8.2.180.0040.01516.75
8.2.170.0100.00722.96
8.2.160.0070.00721.95
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0050.00319.52
8.2.110.0060.00322.11
8.2.100.0040.00817.72
8.2.90.0040.00422.29
8.2.80.0080.00017.97
8.2.70.0080.00017.93
8.2.60.0070.00417.91
8.2.50.0040.00418.10
8.2.40.0070.00020.45
8.2.30.0070.00019.24
8.2.20.0040.00417.76
8.2.10.0020.00518.02
8.2.00.0040.00417.63
8.1.310.0190.00018.36
8.1.300.0060.00616.35
8.1.290.0030.00618.88
8.1.280.0130.01025.92
8.1.270.0070.01118.49
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00722.34
8.1.230.0070.00720.77
8.1.220.0040.00417.79
8.1.210.0000.00818.98
8.1.200.0000.00917.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0090.00018.77
8.1.160.0050.00323.97
8.1.150.0050.00218.53
8.1.140.0040.00419.47
8.1.130.0050.00317.71
8.1.120.0030.00317.36
8.1.110.0080.00017.36
8.1.100.0070.00017.25
8.1.90.0040.00417.35
8.1.80.0070.00017.35
8.1.70.0070.00017.30
8.1.60.0050.00317.48
8.1.50.0040.00417.52
8.1.40.0000.00817.45
8.1.30.0000.01017.61
8.1.20.0000.00817.63
8.1.10.0040.00417.51
8.1.00.0000.00717.49
8.0.300.0070.00019.81
8.0.290.0060.00316.75
8.0.280.0000.00718.37
8.0.270.0080.00017.18
8.0.260.0040.00417.21
8.0.250.0030.00317.02
8.0.240.0030.00317.04
8.0.230.0000.00816.98
8.0.220.0030.00316.91
8.0.210.0000.00716.92
8.0.200.0050.00317.01
8.0.190.0000.00816.97
8.0.180.0070.00016.82
8.0.170.0040.00416.99
8.0.160.0040.00416.96
8.0.150.0000.00716.93
8.0.140.0040.00416.88
8.0.130.0030.00313.37
8.0.120.0000.00816.77
8.0.110.0040.00416.77
8.0.100.0040.00416.94
8.0.90.0070.00016.93
8.0.80.0130.00616.88
8.0.70.0000.00716.91
8.0.60.0040.00416.90
8.0.50.0000.00716.99
8.0.30.0110.00816.92
8.0.20.0150.00817.40
8.0.10.0040.00416.90
8.0.00.0070.01216.68
7.4.330.0030.00315.03
7.4.320.0000.00616.29
7.4.300.0030.00316.56
7.4.290.0040.00416.55
7.4.280.0070.00016.35
7.4.270.0030.00316.46
7.4.260.0000.00716.46
7.4.250.0070.00016.39
7.4.240.0050.00316.48
7.4.230.0030.00316.54
7.4.220.0100.00716.45
7.4.210.0070.01116.46
7.4.200.0000.00716.59
7.4.160.0120.00416.52
7.4.150.0110.00817.40
7.4.140.0160.00517.86
7.4.130.0070.01116.42
7.4.120.0100.01116.44
7.4.110.0040.01216.39
7.4.100.0100.00816.37
7.4.90.0110.00816.47
7.4.80.0100.00716.48
7.4.70.0070.01016.54
7.4.60.0100.00616.38
7.4.50.0070.00716.32
7.4.40.0080.00816.26
7.4.30.0060.01016.49
7.4.20.0130.00616.50
7.4.10.0070.00916.47
7.4.00.0080.00815.67
7.3.330.0000.00513.12
7.3.320.0140.00013.03
7.3.310.0020.00516.28
7.3.300.0050.00316.27
7.3.290.0090.00616.32
7.3.280.0050.01316.28
7.3.270.0160.00617.40
7.3.260.0070.01016.46
7.3.250.0110.01116.43
7.3.240.0080.01416.25
7.3.230.0180.00716.40
7.3.220.0090.00816.53
7.3.210.0100.00816.42
7.3.200.0120.00717.30
7.3.190.0120.00616.38
7.3.180.0090.00816.29
7.3.170.0110.00616.56
7.3.160.0080.00816.36
7.3.150.0050.01216.28
7.3.140.0080.00916.42
7.3.130.0150.00816.41
7.3.120.0130.00615.90
7.3.110.0110.00815.85
7.3.100.0100.00915.88
7.3.90.0070.00915.81
7.3.80.0080.01115.71
7.3.70.0100.00715.75
7.3.60.0030.01215.81
7.3.50.0110.00715.86
7.3.40.0050.01015.80
7.3.30.0070.00715.76
7.3.20.0070.01016.44
7.3.10.0100.00616.44
7.3.00.0050.01116.42
7.2.330.0070.01016.64
7.2.320.0080.01016.65
7.2.310.0080.00916.64
7.2.300.0100.00716.46
7.2.290.0070.01016.53
7.2.280.0110.00716.56
7.2.270.0130.00416.58
7.2.260.0080.00916.52
7.2.250.0070.01215.97
7.2.240.0120.00716.06
7.2.230.0090.00916.07
7.2.220.0080.00915.93
7.2.210.0070.01116.03
7.2.200.0100.00715.98
7.2.190.0060.00915.98
7.2.180.0100.00816.05
7.2.170.0090.00815.92
7.2.160.0070.01016.43
7.2.150.0110.00816.53
7.2.140.0110.00716.57
7.2.130.0100.00916.72
7.2.120.0090.00616.53
7.2.110.0090.00916.50
7.2.100.0080.00916.58
7.2.90.0090.00816.64
7.2.80.0130.00716.63
7.2.70.0110.00716.63
7.2.60.0050.00916.68
7.2.50.0080.00816.65
7.2.40.0110.00616.70
7.2.30.0090.00716.67
7.2.20.0070.01316.59
7.2.10.0090.01116.62
7.2.00.0100.00717.32
7.1.330.0090.01115.67
7.1.320.0090.01115.53
7.1.310.0060.01415.49
7.1.300.0140.00615.62
7.1.290.0120.00715.48
7.1.280.0120.00915.49
7.1.270.0130.00715.63
7.1.260.0130.00515.53
7.1.250.0170.00515.67
7.1.240.0150.01015.49
7.1.230.0160.01215.44
7.1.220.0150.00815.49
7.1.210.0140.01015.44
7.1.200.0210.00815.56
7.1.190.0150.00915.55
7.1.180.0170.00815.49
7.1.170.0120.01315.52
7.1.160.0170.00615.53
7.1.150.0150.00815.54
7.1.140.0090.01215.41
7.1.130.0140.00815.40
7.1.120.0160.00315.46
7.1.110.0070.00915.50
7.1.100.0050.01016.37
7.1.90.0030.01315.49
7.1.80.0090.00915.42
7.1.70.0110.00616.06
7.1.60.0080.01216.87
7.1.50.0090.00715.80
7.1.40.0100.00715.51
7.1.30.0140.00715.38
7.1.20.0080.01115.42
7.1.10.0100.01015.42
7.1.00.0070.03317.83
7.0.330.0270.00415.16
7.0.320.0210.01115.14
7.0.310.0230.00715.08
7.0.300.0200.01215.16
7.0.290.0230.00515.20
7.0.280.0180.01115.07
7.0.270.0140.01115.19
7.0.260.0280.00315.06
7.0.250.0140.00815.09
7.0.240.0130.00815.09
7.0.230.0120.01015.30
7.0.220.0210.00415.30
7.0.210.0200.01115.09
7.0.200.0170.00414.96
7.0.190.0250.00715.23
7.0.180.0180.00415.08
7.0.170.0230.00515.14
7.0.160.0150.01015.15
7.0.150.0200.01115.14
7.0.140.0130.01617.39
7.0.130.0160.00615.03
7.0.120.0160.00915.19
7.0.110.0190.00815.23
7.0.100.0210.01115.20
7.0.90.0250.00715.12
7.0.80.0200.00715.23
7.0.70.0290.00115.06
7.0.60.0170.01816.79
7.0.50.0190.02816.12
7.0.40.0170.03216.85
7.0.30.0250.02816.92
7.0.20.0200.02616.70
7.0.10.0280.02516.84
7.0.00.0210.02916.73
5.6.400.0130.01415.64
5.6.390.0160.01215.70
5.6.380.0160.01415.72
5.6.370.0190.01215.62
5.6.360.0210.01015.75
5.6.350.0180.01115.63
5.6.340.0220.00815.66
5.6.330.0150.01215.67
5.6.320.0140.01015.75
5.6.310.0170.00815.46
5.6.300.0200.00915.66
5.6.290.0120.01315.58
5.6.280.0140.03017.43
5.6.270.0170.01115.70
5.6.260.0160.00915.70
5.6.250.0170.01115.54
5.6.240.0220.00715.54
5.6.230.0220.00915.64
5.6.220.0160.01215.59
5.6.210.0190.01617.32
5.6.200.0160.02516.56
5.6.190.0170.02917.41
5.6.180.0250.02517.25
5.6.170.0210.02017.16
5.6.160.0130.03517.29
5.6.150.0160.02616.39
5.6.140.0120.03716.40
5.6.130.0190.03316.44
5.6.120.0180.02017.47
5.6.110.0180.03717.40
5.6.100.0230.03017.47
5.6.90.0160.02917.54
5.6.80.0190.03017.22
5.6.70.0200.01015.70
5.6.60.0160.01115.57
5.6.50.0190.00915.53
5.6.40.0210.00715.59
5.6.30.0130.01315.46
5.6.20.0170.01015.44
5.6.10.0170.01015.55
5.6.00.0190.01015.44
5.5.380.0190.01115.45
5.5.370.0200.00815.50
5.5.360.0170.01115.56
5.5.350.0200.02117.20
5.5.340.0130.02616.28
5.5.330.0130.02217.15
5.5.320.0150.03617.18
5.5.310.0220.03417.24
5.5.300.0120.02516.40
5.5.290.0160.02816.32
5.5.280.0190.03417.36
5.5.270.0150.02217.21
5.5.260.0140.03817.25
5.5.250.0200.01717.04
5.5.240.0170.03217.14
5.5.230.0180.01215.44
5.5.220.0180.01015.54
5.5.210.0160.01015.42
5.5.200.0160.01015.46
5.5.190.0130.01415.40
5.5.180.0200.00815.67
5.5.170.0180.01115.48
5.5.160.0230.00715.58
5.5.150.0180.01015.54
5.5.140.0190.01015.50
5.5.130.0150.01215.52
5.5.120.0130.01315.42
5.5.110.0180.01115.45
5.5.100.0170.01115.39
5.5.90.0100.01615.58
5.5.80.0120.01615.51
5.5.70.0090.01815.41
5.5.60.0100.01615.46
5.5.50.0100.01515.45
5.5.40.0220.00515.58
5.5.30.0210.00715.52
5.5.20.0180.01215.33
5.5.10.0200.01015.39
5.5.00.0140.01415.42
5.4.450.0180.02315.40
5.4.440.0380.02215.42
5.4.430.0250.02415.44
5.4.420.0380.02615.47
5.4.410.0530.02415.42
5.4.400.0430.02515.30
5.4.390.0100.03015.13
5.4.380.0120.02515.17
5.4.370.0150.02415.09
5.4.360.0160.02215.13
5.4.350.0160.02115.14
5.4.340.0170.02015.13
5.4.330.0120.00813.38
5.4.320.0160.02315.08
5.4.310.0130.02415.14
5.4.300.0190.03015.14
5.4.290.0150.02115.08
5.4.280.0190.02015.13
5.4.270.0190.02615.08
5.4.260.0150.02315.16
5.4.250.0200.02015.16
5.4.240.0130.02515.12
5.4.230.0180.01815.16
5.4.220.0110.02615.11
5.4.210.0130.02415.14
5.4.200.0100.02514.40
5.4.190.0150.02115.10
5.4.180.0180.01815.14
5.4.170.0190.01715.17
5.4.160.0160.02115.12
5.4.150.0210.01615.08
5.4.140.0200.01814.27
5.4.130.0170.02014.33
5.4.120.0120.02314.35
5.4.110.0160.01914.27
5.4.100.0100.02514.37
5.4.90.0170.02214.32
5.4.80.0130.02414.26
5.4.70.0180.02014.26
5.4.60.0090.02614.31
5.4.50.0160.02214.27
5.4.40.0140.02314.33
5.4.30.0140.02114.33
5.4.20.0190.01714.35
5.4.10.0180.01714.30
5.4.00.0130.02114.11

preferences:
63.68 ms | 403 KiB | 5 Q