3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test1() { $s = microtime(true); for($i = 0;$i < 1000000; $i++) { $a = 0b10010111100101001 + 0b11100101001100101; } return microtime(true) - $s; } function test2() { $s = microtime(true); for($i = 0;$i < 1000000; $i++) { $a = 0123123 + 023454; } return microtime(true) - $s; } function test3() { $s = microtime(true); for($i = 0;$i < 1000000; $i++) { $a = 0xFAC + 0x234; } return microtime(true) - $s; } echo test1() . "\n"; echo test2() . "\n"; echo test3() . "\n";

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)
7.4.00.0070.05314.76
7.3.120.0070.06014.61
7.3.110.0090.03514.47
7.3.100.0030.05114.84
7.3.90.0000.05714.82
7.3.80.0030.05514.57
7.3.70.0070.04114.91
7.3.60.0030.04314.88
7.3.50.0030.03914.68
7.3.40.0000.04514.50
7.3.30.0070.06014.70
7.3.20.0030.03816.64
7.3.10.0060.04216.54
7.3.00.0050.04216.56
7.2.250.0030.06914.91
7.2.240.0000.05414.95
7.2.230.0030.04714.70
7.2.220.0070.04615.27
7.2.210.0000.05215.18
7.2.200.0000.05614.92
7.2.190.0100.04014.93
7.2.180.0140.04115.13
7.2.170.0030.04915.00
7.2.130.0080.04716.87
7.2.120.0060.05216.69
7.2.110.0080.04916.63
7.2.100.0100.03816.89
7.2.90.0100.04316.68
7.2.80.0050.04916.76
7.2.70.0070.04916.78
7.2.60.0070.04716.83
7.2.50.0130.04416.54
7.2.40.0100.04216.68
7.2.30.0140.03816.49
7.2.20.0070.04416.79
7.2.10.0080.04416.90
7.2.00.0060.04817.49
7.1.330.0000.12115.70
7.1.320.0000.12015.63
7.1.310.0070.11815.88
7.1.300.0100.11315.56
7.1.290.0070.11615.73
7.1.280.0070.12815.78
7.1.270.0030.13015.77
7.1.260.0030.11715.66
7.1.250.0050.14315.50
7.1.70.0000.04317.37
7.1.60.0100.08119.46
7.1.50.0030.07816.96
7.1.00.0100.12022.39
7.0.200.0000.04716.96
7.0.140.0030.12321.90
7.0.60.0030.11719.93
7.0.50.0200.10317.88
7.0.40.0200.13320.04
7.0.30.0330.09020.34
7.0.20.0330.10020.25
7.0.10.0100.13020.33
7.0.00.0030.13020.09
5.6.280.0030.28321.04
5.6.210.0200.11320.47
5.6.200.0100.18718.22
5.6.190.0170.17320.62
5.6.180.0170.15720.48
5.6.170.0230.12320.54
5.6.160.0070.17720.39
5.6.150.0100.19018.18
5.6.140.0130.17718.28
5.6.130.0100.17318.23
5.6.120.0100.18721.13
5.6.110.0070.19721.02
5.6.100.0100.16021.01
5.6.90.0000.12720.89
5.6.80.0100.16720.39
5.6.70.4530.13020.36
5.5.350.0330.18020.45
5.5.340.0000.14017.94
5.5.330.0100.22020.32
5.5.320.0200.12020.24
5.5.310.0200.14720.30
5.5.300.0030.15317.92
5.5.290.0070.19017.98
5.5.280.0000.13020.95
5.5.270.0070.18720.73
5.5.260.0100.17320.93
5.5.250.0000.18020.70
5.5.240.0230.18020.07
5.4.450.1930.13019.33
5.4.440.2030.13319.52
5.4.430.1930.13319.48
5.4.420.1900.13019.32
5.4.410.1830.12719.05
5.4.400.1800.13318.89
5.4.390.1600.13319.03
5.4.380.1700.13019.06
5.4.370.1600.12318.91
5.4.360.1930.15018.78
5.4.350.1470.12319.08
5.4.340.1400.13319.31
5.4.320.0070.12318.89
5.4.310.0000.14019.17
5.4.300.0630.12018.97
5.4.290.1300.11318.88
5.4.280.1470.12718.97
5.4.270.1630.11319.03
5.4.260.1570.12018.79
5.4.250.1270.12019.20
5.4.240.1400.11318.88
5.4.230.1370.11718.75
5.4.220.0070.12019.19
5.4.210.0030.14018.89
5.4.200.0700.12018.90
5.4.190.1300.12018.88
5.4.180.1600.11719.29
5.4.170.1670.12319.02
5.4.160.1300.12718.89
5.4.150.1470.12319.20
5.4.140.1700.12316.55
5.4.130.2030.15316.37
5.4.120.1930.13016.35
5.4.110.2000.13316.59
5.4.100.2100.11716.63
5.4.90.2200.13716.59
5.4.80.1670.13716.44
5.4.70.1730.12716.41
5.4.60.1830.14316.22
5.4.50.1400.13016.53
5.4.40.1700.13316.17
5.4.30.1730.12716.51
5.4.20.1900.12316.24
5.4.10.1800.13716.48
5.4.00.1930.13715.90
5.3.290.1900.04014.67
5.3.280.1770.03714.51
5.3.270.1800.04314.72
5.3.260.1730.05314.59
5.3.250.1570.03014.75
5.3.240.1670.04014.63
5.3.230.1800.04014.75
5.3.220.1700.04014.54
5.3.210.1630.04314.56
5.3.200.1430.04014.69
5.3.190.1570.03314.44
5.3.180.1870.03314.46
5.3.170.1830.03714.54
5.3.160.1470.04014.62
5.3.150.1630.04014.65
5.3.140.1870.04314.63
5.3.130.1730.05014.57
5.3.120.1670.03714.57
5.3.110.1770.04714.64
5.3.100.1630.04313.95
5.3.90.1830.04013.94
5.3.80.1600.03014.02
5.3.70.1670.04314.10
5.3.60.1400.03713.92
5.3.50.1830.03713.85
5.3.40.1500.04014.02
5.3.30.1730.04013.82
5.3.20.1630.02713.77
5.3.10.1870.03313.79
5.3.00.1530.03313.73
5.2.170.1300.03011.07
5.2.160.1230.03311.10
5.2.150.1370.02311.19
5.2.140.1270.03011.05
5.2.130.1530.03011.33
5.2.120.1200.03711.25
5.2.110.1330.03011.15
5.2.100.1570.03011.00
5.2.90.1300.03311.01
5.2.80.1430.02711.10
5.2.70.1330.02711.00
5.2.60.1270.03311.16
5.2.50.1530.03310.93
5.2.40.1130.03010.91
5.2.30.1230.03010.90
5.2.20.1130.02710.89
5.2.10.1070.03010.93
5.2.00.1300.03310.62
5.1.60.0970.0279.89
5.1.50.1030.02010.11
5.1.40.1200.0439.86
5.1.30.1070.02010.35
5.1.20.1270.03310.30
5.1.10.1130.03010.00
5.1.00.1200.0309.96
5.0.50.0570.0278.48
5.0.40.0570.0278.64
5.0.30.0630.0478.23
5.0.20.0600.0308.30
5.0.10.0670.0308.15
5.0.00.0700.0438.25
4.4.90.0670.0277.73
4.4.80.0570.0177.73
4.4.70.0570.0177.73
4.4.60.0630.0277.73
4.4.50.0570.0137.73
4.4.40.0600.0277.73
4.4.30.0530.0137.73
4.4.20.0530.0207.73
4.4.10.0700.0277.73
4.4.00.0530.0207.73
4.3.110.0700.0277.73
4.3.100.0470.0177.73
4.3.90.0570.0137.73
4.3.80.0670.0307.73
4.3.70.0700.0237.73
4.3.60.0770.0177.73
4.3.50.0530.0137.73
4.3.40.0500.0237.73
4.3.30.0330.0307.73
4.3.20.0300.0337.73
4.3.10.0230.0177.73
4.3.00.0400.0237.73

preferences:
38.8 ms | 401 KiB | 5 Q