3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0x40; $b = ~$a; // flip bits, i.e. 2s complement so -$a and then minus 1 var_dump("var_dump: $b"); // -65 printf("\nprintf: %d\n\n", $b); var_dump( base_convert($b, 10, 2) ); // 65 // **************************// // should be: printf("\nprintf: %d\n\n", $b); printf("\nprintf:%b\n\n",-65);

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.00918.36
8.3.50.0090.01121.93
8.3.40.0120.00618.67
8.3.30.0140.00418.72
8.3.20.0040.00420.16
8.3.10.0080.00020.34
8.3.00.0040.00420.82
8.2.180.0130.00716.38
8.2.170.0110.00422.96
8.2.160.0100.00322.26
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0090.00020.90
8.2.100.0070.00417.92
8.2.90.0000.00819.05
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0050.00317.93
8.2.50.0060.00318.09
8.2.40.0000.00720.32
8.2.30.0060.00319.41
8.2.20.0000.00717.68
8.2.10.0050.00217.95
8.2.00.0000.00717.92
8.1.280.0070.01125.92
8.1.270.0090.00923.92
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0000.01117.58
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.00
8.1.180.0030.00518.10
8.1.170.0030.00618.52
8.1.160.0040.00420.56
8.1.150.0040.00418.81
8.1.140.0040.00419.38
8.1.130.0000.00717.67
8.1.120.0000.00717.41
8.1.110.0040.00317.43
8.1.100.0040.00417.37
8.1.90.0000.00717.43
8.1.80.0000.00817.30
8.1.70.0070.00017.26
8.1.60.0030.00517.50
8.1.50.0000.00817.49
8.1.40.0090.00317.43
8.1.30.0030.00517.56
8.1.20.0000.00717.33
8.1.10.0040.00417.41
8.1.00.0040.00417.39
8.0.300.0050.00218.77
8.0.290.0040.00416.88
8.0.280.0030.00318.43
8.0.270.0000.00717.20
8.0.260.0000.00717.24
8.0.250.0000.00816.94
8.0.240.0080.00016.87
8.0.230.0000.00717.01
8.0.220.0030.00316.83
8.0.210.0040.00416.98
8.0.200.0030.00317.00
8.0.190.0040.00417.01
8.0.180.0030.00316.86
8.0.170.0080.00016.83
8.0.160.0050.00216.86
8.0.150.0060.00316.79
8.0.140.0000.00716.82
8.0.130.0030.00313.35
8.0.120.0040.00416.96
8.0.110.0050.00316.92
8.0.100.0030.00516.83
8.0.90.0040.00416.84
8.0.80.0130.00916.85
8.0.70.0000.00816.88
8.0.60.0050.00316.92
8.0.50.0080.00016.87
8.0.30.0100.00717.04
8.0.20.0090.00917.40
8.0.10.0080.00016.87
8.0.00.0110.00616.78
7.4.330.0000.00516.73
7.4.320.0000.00616.35
7.4.300.0070.00016.53
7.4.290.0040.00416.39
7.4.280.0000.00716.62
7.4.270.0000.00716.59
7.4.260.0000.00816.61
7.4.250.0050.00316.55
7.4.240.0000.00716.55
7.4.230.0000.00716.42
7.4.220.0060.01216.67
7.4.210.0120.00616.42
7.4.200.0030.00316.65
7.4.160.0100.01316.23
7.4.150.0130.00317.40
7.4.140.0100.01117.86
7.4.130.0160.00416.59
7.4.120.0140.01016.58
7.4.110.0140.00316.57
7.4.100.0120.00616.64
7.4.90.0090.00916.40
7.4.80.0130.01219.39
7.4.70.0090.00616.36
7.4.60.0100.00716.48
7.4.50.0080.00816.37
7.4.40.0110.00816.50
7.4.30.0030.01516.56
7.4.10.0090.00915.18
7.4.00.0080.00914.76
7.3.330.0000.00513.02
7.3.320.0000.00612.93
7.3.310.0000.00816.13
7.3.300.0050.00216.04
7.3.290.0020.01316.28
7.3.280.0060.01116.22
7.3.270.0160.00617.40
7.3.260.0080.00816.26
7.3.240.0120.00816.40
7.3.230.0070.01016.39
7.3.210.0090.00916.18
7.3.200.0090.00916.67
7.3.190.0060.00916.34
7.3.180.0120.00616.38
7.3.170.0130.01016.37
7.3.160.0080.00816.47
7.3.130.0130.00314.67
7.3.120.0030.01414.74
7.3.110.0120.00615.00
7.3.100.0090.00314.82
7.3.90.0060.00614.42
7.3.80.0140.00014.70
7.3.70.0070.00314.57
7.3.60.0060.00314.71
7.3.50.0030.00614.79
7.3.40.0090.00914.71
7.3.30.0130.00314.61
7.3.20.0030.00916.41
7.3.10.0000.01416.65
7.3.00.0030.00616.79
7.2.330.0070.01016.58
7.2.320.0140.00616.55
7.2.310.0030.01316.29
7.2.300.0140.00316.63
7.2.290.0090.00616.64
7.2.260.0140.00415.21
7.2.250.0030.01614.80
7.2.240.0130.00315.05
7.2.230.0090.00614.80
7.2.220.0000.01615.10
7.2.210.0040.01114.86
7.2.200.0080.00815.11
7.2.190.0040.01114.91
7.2.180.0060.00314.91
7.2.170.0090.00614.97
7.2.160.0070.01014.78
7.2.150.0070.00716.53
7.2.140.0060.00316.88
7.2.130.0130.00016.81
7.2.120.0040.01216.57
7.2.110.0030.00616.77
7.2.100.0030.00616.84
7.2.90.0040.00716.73
7.2.80.0000.00916.67
7.2.70.0090.00416.62
7.2.60.0000.00916.50
7.2.50.0050.00516.67
7.2.40.0030.01316.59
7.2.30.0040.01116.92
7.2.20.0060.00816.73
7.2.10.0040.00416.98
7.2.00.0060.01016.71
7.1.330.0140.00015.70
7.1.320.0070.00315.66
7.1.310.0070.00415.96
7.1.300.0090.00315.82
7.1.290.0070.01015.87
7.1.280.0070.01115.79
7.1.270.0040.00415.83
7.1.260.0000.00915.55
7.1.250.0110.00315.79
7.1.240.0080.00615.95
7.1.230.0080.00415.78
7.1.220.0070.00715.89
7.1.210.0070.00715.88
7.1.200.0040.00415.91
7.1.190.0000.00915.90
7.1.180.0060.00915.73
7.1.170.0070.00715.96
7.1.160.0030.01015.46
7.1.150.0060.00915.63
7.1.140.0030.00915.93
7.1.130.0080.00015.88
7.1.120.0080.00815.82
7.1.110.0070.00715.66
7.1.100.0060.00315.73
7.1.90.0070.00715.58
7.1.80.0040.01115.85
7.1.70.0030.00816.45
7.1.60.0110.00717.63
7.1.50.0050.01416.38
7.1.40.0030.01016.06
7.1.30.0030.01415.88
7.1.20.0040.00415.88
7.1.10.0000.01415.72
7.1.00.0070.03819.06
7.0.330.0040.01115.48
7.0.320.0030.00715.42
7.0.310.0100.00315.19
7.0.300.0090.00315.45
7.0.290.0090.00315.42
7.0.280.0030.00615.41
7.0.270.0000.00915.37
7.0.260.0090.00315.53
7.0.250.0070.01015.42
7.0.240.0060.00315.50
7.0.230.0040.01115.41
7.0.220.0030.00715.45
7.0.210.0060.00615.32
7.0.200.0230.01015.11
7.0.190.0030.01315.52
7.0.180.0070.00715.30
7.0.170.0030.00915.59
7.0.160.0000.00915.50
7.0.150.0070.01015.60
7.0.140.0040.01215.45
7.0.130.0040.00715.44
7.0.120.0000.01315.50
7.0.110.0030.01015.45
7.0.100.0030.00615.32
7.0.90.0090.00015.47
7.0.80.0000.00815.35
7.0.70.0030.01015.30
7.0.60.0050.04818.64
7.0.50.0120.02016.68
7.0.40.0080.04516.91
7.0.30.0160.04316.80
7.0.20.0100.03016.91
7.0.10.0060.04616.82
7.0.00.0050.04316.77
5.6.400.0070.01014.18
5.6.390.0040.00714.64
5.6.380.0030.00913.87
5.6.370.0090.00614.29
5.6.360.0100.00314.21
5.6.350.0000.01714.39
5.6.340.0000.01314.41
5.6.330.0080.00414.17
5.6.320.0030.01314.45
5.6.310.0090.00613.91
5.6.300.0130.00314.21
5.6.290.0130.00314.41
5.6.280.0030.02017.83
5.6.270.0060.00914.38
5.6.260.0000.01414.30
5.6.250.0040.00714.46
5.6.240.0030.00714.36
5.6.230.0060.00614.28
5.6.220.0030.01014.10
5.6.210.0020.05117.26
5.6.200.0060.02016.24
5.6.190.0100.03017.28
5.6.180.0220.03717.53
5.6.170.0150.03117.41
5.6.160.0090.03817.43
5.6.150.0080.02316.12
5.6.140.0020.04916.19
5.6.130.0080.04316.29
5.6.120.0050.02817.75
5.6.110.0120.03917.54
5.6.100.0020.03717.69
5.6.90.0050.03617.80
5.6.80.0070.03717.30
5.6.70.0030.01214.13
5.6.60.0030.00614.23
5.6.50.0070.00414.14
5.6.40.0030.01113.99
5.6.30.0050.00814.09
5.6.20.0040.01414.06
5.6.10.0070.01114.25
5.6.00.0110.00414.13
5.5.380.0060.00914.36
5.5.370.0070.00714.13
5.5.360.0070.00714.41
5.5.350.0210.04117.31
5.5.340.0080.04216.05
5.5.330.0090.04317.40
5.5.320.0220.02817.41
5.5.310.0160.04417.42
5.5.300.0030.04715.96
5.5.290.0100.03516.09
5.5.280.0130.02517.65
5.5.270.0080.03117.58
5.5.260.0130.03817.32
5.5.250.0070.04517.34
5.5.240.0020.03417.20
5.5.230.0090.00614.29
5.5.220.0040.00714.30
5.5.210.0000.01314.02
5.5.200.0030.01014.13
5.5.190.0030.01413.96
5.5.180.0120.00014.00
5.5.170.0140.00414.01
5.5.160.0040.01113.93
5.5.150.0000.01214.16
5.5.140.0000.01014.35
5.5.130.0070.00714.12
5.5.120.0100.00313.88
5.5.110.0090.00914.26
5.5.100.0060.00613.93
5.5.90.0040.00814.29
5.5.80.0030.01414.22
5.5.70.0040.01113.98
5.5.60.0100.00313.88
5.5.50.0070.00714.24
5.5.40.0080.00413.66
5.5.30.0080.00314.25
5.5.20.0100.00314.13
5.5.10.0040.01114.28
5.5.00.0040.00713.92

preferences:
62.1 ms | 401 KiB | 5 Q