3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = []; $s = microtime(true); for ($i = 0; $i < 1000000; $i++) $name = isset($input['name']) ? $input['name']:'John'; var_dump(microtime(true)-$s);

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.0080.03514.84
7.3.120.0050.04214.71
7.3.110.0050.03114.62
7.3.100.0050.02814.87
7.3.90.0030.03514.61
7.3.80.0070.02714.70
7.3.70.0050.02914.53
7.3.60.0050.02614.66
7.3.50.0020.03214.71
7.3.40.0030.02914.63
7.3.30.0070.03214.85
7.3.20.0050.02816.58
7.3.10.0110.02316.79
7.3.00.0070.02816.69
7.2.250.0070.04315.14
7.2.240.0090.03515.03
7.2.230.0030.03215.05
7.2.220.0110.02215.04
7.2.210.0050.02915.04
7.2.200.0100.02815.11
7.2.190.0070.02614.91
7.2.180.0100.02715.06
7.2.170.0050.03314.89
7.2.00.0070.02419.23
7.1.330.0050.06615.63
7.1.320.0080.06415.67
7.1.310.0080.06415.75
7.1.300.0030.06915.44
7.1.290.0030.07115.57
7.1.280.0070.07615.77
7.1.270.0070.06715.52
7.1.260.0050.06415.52
7.1.70.0070.05916.85
7.1.60.0130.05019.12
7.1.50.0030.02616.72
7.1.00.0070.10322.43
7.0.200.0070.03016.91
7.0.140.0000.10322.11
7.0.60.0000.06019.91
7.0.50.0100.10717.80
7.0.40.0030.06020.24
7.0.30.0330.08020.14
7.0.20.0300.10720.21
7.0.10.0070.06320.09
7.0.00.0230.06020.13
5.6.280.0000.18020.77
5.6.210.0000.11020.46
5.6.200.0100.15018.13
5.6.190.0030.16020.53
5.6.180.0500.12020.41
5.6.170.0370.14320.51
5.6.160.0000.11720.46
5.6.150.0030.10718.19
5.6.140.0100.15718.13
5.6.130.0030.12318.08
5.6.120.0070.16021.07
5.6.110.0100.14721.00
5.6.100.0100.15721.04
5.6.90.0100.10321.09
5.6.80.0100.12320.36
5.5.350.0170.15320.42
5.5.340.0070.09717.89
5.5.330.0100.13320.57
5.5.320.0330.12720.41
5.5.310.0300.14720.50
5.5.300.0030.16717.88
5.5.290.0100.14317.91
5.5.280.0200.15020.79
5.5.270.0130.15720.84
5.5.260.0070.16320.67
5.5.250.0070.10320.57
5.5.240.0200.14720.36
5.4.450.0470.14019.45
5.4.440.0500.14319.45
5.4.430.0470.13719.45
5.4.420.0400.13319.45
5.4.410.0100.12319.45
5.4.400.0430.12319.45
5.4.390.0370.11019.45
5.4.380.0370.22318.69
5.4.370.0330.15318.46
5.4.360.0270.15018.61
5.4.350.0570.19018.50
5.4.340.0230.15718.63
5.4.320.0050.11312.45
5.4.310.0090.11012.45
5.4.300.0040.10112.45
5.4.290.0040.10212.45
5.4.280.0050.11712.35
5.4.270.0070.10112.34
5.4.260.0090.11612.35
5.4.250.0070.09812.35
5.4.240.0060.11212.34
5.4.230.0060.14312.34
5.4.220.0020.10112.34
5.4.210.0050.10112.34
5.4.200.0040.10712.34
5.4.190.0080.10012.34
5.4.180.0040.10212.33
5.4.170.0070.10512.35
5.4.160.0070.09712.34
5.4.150.0060.11412.34
5.4.140.0040.11312.02
5.4.130.0050.10512.01
5.4.120.0030.11011.97
5.4.110.0120.10611.96
5.4.100.0050.12011.96
5.4.90.0040.10911.96
5.4.80.0040.10211.96
5.4.70.0070.11611.96
5.4.60.0030.11711.96
5.4.50.0070.10411.96
5.4.40.0060.10711.95
5.4.30.0070.09811.95
5.4.20.0050.09911.95
5.4.10.0060.09611.95
5.4.00.0060.12711.44
5.3.290.0080.04212.80
5.3.280.0050.05012.71
5.3.270.0060.03812.72
5.3.260.0090.05012.72
5.3.250.0060.04812.72
5.3.240.0120.04412.71
5.3.230.0070.04212.70
5.3.220.0080.03812.68
5.3.210.0070.03712.68
5.3.200.0080.03712.68
5.3.190.0030.04312.68
5.3.180.0060.03612.68
5.3.170.0050.03612.67
5.3.160.0050.03712.67
5.3.150.0090.03412.67
5.3.140.0070.04312.66
5.3.130.0080.04412.66
5.3.120.0060.04512.66
5.3.110.0090.03912.66
5.3.100.0070.03812.12
5.3.90.0120.03412.08
5.3.80.0050.03812.08
5.3.70.0060.04012.07
5.3.60.0040.04212.06
5.3.50.0080.04512.00
5.3.40.0070.03612.00
5.3.30.0080.03511.95
5.3.20.0070.03911.72
5.3.10.0090.03611.70
5.3.00.0060.04711.68
5.2.170.0060.0309.18
5.2.160.0110.0349.18
5.2.150.0050.0339.18
5.2.140.0050.0379.18
5.2.130.0070.0339.14
5.2.120.0070.0289.14
5.2.110.0060.0269.15
5.2.100.0040.0289.14
5.2.90.0030.0309.14
5.2.80.0040.0309.14
5.2.70.0060.0319.14
5.2.60.0070.0269.09
5.2.50.0030.0309.05
5.2.40.0040.0289.03
5.2.30.0060.0289.01
5.2.20.0030.0309.00
5.2.10.0090.0308.93
5.2.00.0050.0278.78
5.1.60.0030.0248.06
5.1.50.0060.0268.06
5.1.40.0010.0268.05
5.1.30.0040.0328.40
5.1.20.0040.0318.42
5.1.10.0060.0238.14
5.1.00.0040.0248.14
5.0.50.0040.0226.63
5.0.40.0010.0206.48
5.0.30.0050.0356.29
5.0.20.0070.0176.27
5.0.10.0060.0266.23
5.0.00.0060.0366.23
4.4.90.0050.0134.78
4.4.80.0020.0154.75
4.4.70.0030.0144.76
4.4.60.0040.0134.76
4.4.50.0030.0264.77
4.4.40.0020.0304.71
4.4.30.0020.0164.76
4.4.20.0050.0144.84
4.4.10.0020.0164.84
4.4.00.0050.0224.76
4.3.110.0050.0184.67
4.3.100.0030.0144.66
4.3.90.0040.0134.64
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0010.0184.63
4.3.40.0000.0264.54
4.3.30.0010.0173.29
4.3.20.0030.0153.25
4.3.10.0010.0173.22
4.3.00.0000.02019.45

preferences:
35.23 ms | 401 KiB | 5 Q