3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'a'; $start_time = microtime(true); for($i = 0; $i <= 1000000; $i++){ +$a; } echo '<br/>', microtime(true) - $start_time; $start_time1 = microtime(true); for($i = 0; $i <= 1000000; $i++){ intval($a); } echo '<br/>', microtime(true) - $start_time1;

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.3.00.0150.00316.47
7.2.130.0100.01016.59
7.2.120.0120.00316.75
7.2.110.0130.00716.86
7.2.100.0140.00316.92
7.2.90.0080.00816.62
7.2.80.0140.00316.73
7.2.70.0060.00616.60
7.2.60.0040.01116.79
7.2.50.0040.01116.86
7.2.40.0290.00316.93
7.2.30.0000.01216.83
7.2.20.0030.01316.70
7.2.10.0030.01016.85
7.2.00.0080.00717.99
7.1.250.0110.00715.63
7.1.240.0070.00815.70
7.1.230.0110.00415.68
7.1.220.0130.00315.72
7.1.210.0130.00315.73
7.1.200.0110.00415.90
7.1.190.0040.01115.65
7.1.180.0000.01315.84
7.1.170.0050.00315.53
7.1.160.0060.00315.66
7.1.150.0060.00615.66
7.1.140.0090.00615.75
7.1.130.0030.00515.90
7.1.120.0030.00715.48
7.1.110.0130.00015.74
7.1.100.0030.00715.68
7.1.90.0080.00815.86
7.1.80.0070.00315.71
7.1.70.0050.00416.37
7.1.60.0050.01217.54
7.1.50.0090.00916.31
7.1.40.0030.00615.84
7.1.30.0070.00415.65
7.1.20.0090.00615.77
7.1.10.0040.00915.66
7.1.00.0030.04018.94
7.0.330.0130.14315.27
7.0.320.0100.14015.40
7.0.310.0070.15115.44
7.0.300.0100.14515.30
7.0.290.0100.13715.12
7.0.280.0070.14915.52
7.0.270.0030.17515.07
7.0.260.0070.17715.29
7.0.250.0070.15715.04
7.0.240.0030.15215.18
7.0.230.0030.16615.30
7.0.220.0030.15015.32
7.0.210.0030.15215.14
7.0.200.0080.11116.07
7.0.190.0100.15315.51
7.0.180.0070.14815.34
7.0.170.0070.15615.06
7.0.160.0130.14015.36
7.0.150.0130.13915.48
7.0.140.0050.15018.71
7.0.130.0030.14715.42
7.0.120.0070.14815.66
7.0.110.0030.17215.29
7.0.100.0030.14815.39
7.0.90.0030.14315.43
7.0.80.0000.17915.56
7.0.70.0000.15415.14
7.0.60.0020.16518.55
7.0.50.0100.13316.62
7.0.40.0020.11916.63
7.0.30.0180.14416.83
7.0.20.0200.12916.87
7.0.10.0120.14316.71
7.0.00.0100.15316.60
5.6.380.0100.29214.46
5.6.370.0030.29613.90
5.6.360.0030.32914.20
5.6.350.0070.30914.28
5.6.340.0070.31414.27
5.6.330.0100.37314.15
5.6.320.0030.32713.96
5.6.310.0030.34214.27
5.6.300.0070.33214.46
5.6.290.0100.31114.07
5.6.280.0050.31817.60
5.6.270.0070.33914.00
5.6.260.0070.38613.91
5.6.250.0070.32014.12
5.6.240.0070.32514.44
5.6.230.0100.31914.08
5.6.220.0070.36413.88
5.6.210.0020.25317.27
5.6.200.0050.26615.99
5.6.190.0070.26717.47
5.6.180.0170.26817.39
5.6.170.0130.27917.09
5.6.160.0100.27417.33
5.6.150.0130.25616.07
5.6.140.0030.24716.19
5.6.130.0050.30716.23
5.6.120.0050.30217.49
5.6.110.0080.27017.55
5.6.100.0080.27717.54
5.6.90.0050.26017.42
5.6.80.0080.26217.23
5.6.70.0070.33213.81
5.6.60.0030.31714.16
5.6.50.0000.32013.85
5.6.40.0030.32013.90
5.6.30.0070.33213.81
5.6.20.0070.32213.90
5.6.10.0030.30714.04
5.6.00.0070.30914.08
5.5.380.0000.36211.18
5.5.370.0000.30911.18
5.5.360.0070.33911.18
5.5.350.0020.28415.75
5.5.340.0070.24114.58
5.5.330.0080.25315.68
5.5.320.0130.24815.73
5.5.310.0130.26515.72
5.5.300.0030.26914.58
5.5.290.0100.26114.59
5.5.280.0050.26015.91
5.5.270.0100.27515.98
5.5.260.0030.24216.07
5.5.250.0120.27015.98
5.5.240.0100.26015.71
5.5.230.0000.34711.18
5.5.220.0000.36111.18
5.5.210.0030.31311.18
5.5.200.0100.32111.18
5.5.190.0000.35011.18
5.5.180.0000.32411.18
5.5.170.0030.32111.18
5.5.160.0030.31011.18
5.5.150.0130.34911.18
5.5.140.0030.32011.18
5.5.130.0000.34911.18
5.5.120.0030.30711.18
5.5.110.0030.31211.18
5.5.100.0070.28811.18
5.5.90.0100.31511.18
5.5.80.0000.35711.18
5.5.70.0030.30411.18
5.5.60.0030.34111.18
5.5.50.0070.30911.18
5.5.40.0000.37111.18
5.5.30.0090.32411.18
5.5.20.0030.34211.18
5.5.10.0070.33011.18
5.5.00.0070.35311.18
5.4.450.0030.28815.34
5.4.440.0030.30315.15
5.4.430.0080.26715.21
5.4.420.0020.24715.29
5.4.410.0030.22915.26
5.4.400.0050.26814.99
5.4.390.0050.25615.17
5.4.380.0030.25215.14
5.4.370.0030.24614.98
5.4.360.0000.24715.09
5.4.350.0020.25014.98
5.4.340.0030.24715.13
5.4.330.0070.32011.18
5.4.320.0100.27515.16
5.4.310.0020.28315.16
5.4.300.0080.27115.17
5.4.290.0120.27415.16
5.4.280.0050.28715.06
5.4.270.0050.24714.99
5.4.260.0050.25115.18
5.4.250.0080.25615.08
5.4.240.0080.28715.18
5.4.230.0070.26515.12
5.4.220.0030.29014.99
5.4.210.0030.31514.98
5.4.200.0070.24814.98
5.4.190.0080.26215.14
5.4.180.0020.23714.98
5.4.170.0020.24515.17
5.4.160.0050.25415.12
5.4.150.0070.28115.12
5.4.140.0050.25713.73
5.4.130.0030.32113.75
5.4.120.0050.29113.69
5.4.110.0050.29013.79
5.4.100.0150.26413.72
5.4.90.0050.26713.77
5.4.80.0080.28413.70
5.4.70.0050.26413.75
5.4.60.0050.29613.72
5.4.50.0300.25513.77
5.4.40.0050.26113.74
5.4.30.0050.25213.71
5.4.20.0050.27813.65
5.4.10.0080.29013.69
5.4.00.0150.25013.47
5.3.290.0030.31412.89
5.3.280.0070.34112.85
5.3.270.0050.33612.94
5.3.260.0080.34812.87
5.3.250.0030.32412.86
5.3.240.0050.37312.84
5.3.230.0070.36312.89
5.3.220.0030.37012.86
5.3.210.0080.33512.85
5.3.200.0030.33112.88
5.3.190.0030.33212.91
5.3.180.0070.33512.84
5.3.170.0070.31012.81
5.3.160.0020.35112.83
5.3.150.0050.34312.84
5.3.140.0100.34412.85
5.3.130.0050.32312.91
5.3.120.0070.30112.84
5.3.110.0020.33312.82
5.3.100.0070.33412.50
5.3.90.0030.32412.57
5.3.80.0030.34212.57
5.3.70.0100.34312.56
5.3.60.0100.32512.48
5.3.50.0080.30512.52
5.3.40.0050.35112.52
5.3.30.0030.33312.51
5.3.20.0030.31012.42
5.3.10.0050.34512.38
5.3.00.0020.32212.39
5.2.170.0070.33411.10
5.2.160.0050.32311.09
5.2.150.0030.34511.10
5.2.140.0020.33211.13
5.2.130.0030.34511.22
5.2.120.0030.33611.11
5.2.110.0120.36111.08
5.2.100.0070.35211.21
5.2.90.0050.32311.13
5.2.80.0030.35811.13
5.2.70.0050.34211.08
5.2.60.0030.33911.04
5.2.50.0000.36311.13
5.2.40.0300.30411.09
5.2.30.0070.35011.04
5.2.20.0030.33911.05
5.2.10.0050.30611.01
5.2.00.0050.38910.89
5.1.60.0070.37910.60
5.1.50.0020.37210.58
5.1.40.0030.34610.65
5.1.30.0000.37410.76
5.1.20.0030.33410.83
5.1.10.0050.35610.60
5.1.00.0030.34310.60
5.0.50.0070.6439.89
5.0.40.0020.6319.74
5.0.30.0050.5949.68
5.0.20.0020.6229.75
5.0.10.0030.6299.66
5.0.00.0020.6679.74
4.4.90.0080.6359.22
4.4.80.0080.6449.22
4.4.70.0020.6149.22
4.4.60.0020.6279.22
4.4.50.0460.6349.22
4.4.40.0030.6349.22
4.4.30.0020.6039.22
4.4.20.0030.6439.22
4.4.10.0020.6389.22
4.4.00.0050.6279.22
4.3.110.0030.6009.22
4.3.100.0000.6019.22
4.3.90.0030.6419.22
4.3.80.0000.6409.22
4.3.70.0030.6219.22
4.3.60.0280.6179.22
4.3.50.0050.6329.22
4.3.40.0300.6099.22
4.3.30.0020.5889.22
4.3.20.0020.5579.22
4.3.10.0030.5989.22
4.3.00.0020.5889.22

preferences:
60.51 ms | 401 KiB | 5 Q