3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestart = microtime( true ); $class = 'css'; $item = array( 'foo', 'bar', 'baz' ); for($i=0;$i<1000000;$i++){ $str = "<a class='button button-secondary$class' href='themes.php?page={$item[2]}'$>{$item[0]}</a>"; } $timeend = microtime( true ); $timetotal = $timeend - $timestart; $r = number_format( $timetotal, 3 ); echo $r;

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.10.0080.22215.05
7.4.00.0050.17314.95
7.3.130.0130.17214.81
7.3.120.0050.23014.94
7.3.110.0120.19914.87
7.3.100.0070.19714.74
7.3.90.0080.20914.81
7.3.80.0050.17914.87
7.3.70.0050.16114.71
7.3.60.0030.18014.90
7.3.50.0070.17814.87
7.3.40.0070.17414.84
7.3.30.0030.16714.83
7.3.20.0050.17816.58
7.3.10.0090.17516.51
7.3.00.0080.16516.52
7.2.260.0100.20314.95
7.2.250.0100.22915.05
7.2.240.0050.19415.05
7.2.230.0100.18714.97
7.2.220.0050.21015.31
7.2.210.0070.17514.84
7.2.200.0020.18015.01
7.2.190.0070.18015.10
7.2.180.0030.19415.04
7.2.170.0050.18114.93
7.2.160.0030.18015.18
7.2.150.0000.18616.78
7.2.140.0070.16017.02
7.2.130.0000.17716.67
7.2.120.0080.19016.72
7.2.110.0080.18616.66
7.2.100.0080.16716.86
7.2.90.0080.20516.82
7.2.80.0100.19716.58
7.2.70.0080.17216.72
7.2.60.0100.15817.01
7.2.50.0070.19116.83
7.2.40.0050.20616.71
7.2.30.0080.17817.01
7.2.20.0050.19316.96
7.2.10.0080.18316.91
7.2.00.0070.17317.69
7.1.330.0020.26615.77
7.1.320.0030.26815.82
7.1.310.0030.24715.88
7.1.300.0050.26315.85
7.1.290.0030.25015.96
7.1.280.0070.26415.84
7.1.270.0020.23915.82
7.1.260.0030.24515.66
7.1.250.0080.24115.74
7.1.240.0000.30915.57
7.1.230.0000.28515.55
7.1.220.0070.26415.63
7.1.210.0030.30215.97
7.1.200.0070.25515.91
7.1.190.0030.24915.85
7.1.180.0070.23715.79
7.1.170.0030.24015.97
7.1.160.0000.27615.84
7.1.150.0000.29015.55
7.1.140.0030.26815.93
7.1.130.0070.26515.71
7.1.120.0030.23915.82
7.1.110.0070.24715.71
7.1.100.0070.24615.89
7.1.90.0070.28816.00
7.1.80.0030.24615.73
7.1.70.0030.20516.58
7.1.60.0050.18417.55
7.1.50.0080.20816.39
7.1.40.0000.28215.65
7.1.30.0070.26315.79
7.1.20.0030.28115.76
7.1.10.0070.24115.85
7.1.00.0050.25419.10
7.0.330.0030.28615.23
7.0.320.0000.23715.52
7.0.310.0030.24815.15
7.0.300.0000.26815.52
7.0.290.0070.28815.51
7.0.280.0030.25215.46
7.0.270.0070.24715.41
7.0.260.0030.27615.45
7.0.250.0000.25715.52
7.0.240.0000.25715.19
7.0.230.0030.26315.42
7.0.220.0100.22515.64
7.0.210.0030.25615.21
7.0.200.0030.22116.01
7.0.190.0070.28015.49
7.0.180.0030.29515.62
7.0.170.0000.29715.68
7.0.160.0030.26415.43
7.0.150.0030.26815.47
7.0.140.0030.23218.75
7.0.130.0070.30515.58
7.0.120.0030.31215.54
7.0.110.0030.30615.43
7.0.100.0030.27015.12
7.0.90.0100.30915.53
7.0.80.0070.25015.36
7.0.70.0000.26015.64
7.0.60.0070.26217.65
7.0.50.0070.23116.67
7.0.40.0070.23916.92
7.0.30.0130.22116.82
7.0.20.0220.23316.86
7.0.10.0170.21116.82
7.0.00.0050.23916.82
5.6.400.0070.45014.17
5.6.390.0030.49414.59
5.6.380.0030.48214.54
5.6.370.0000.39514.59
5.6.360.0070.48814.52
5.6.350.0030.43314.60
5.6.340.0100.46314.58
5.6.330.0070.49814.52
5.6.320.0030.49114.50
5.6.310.0000.43514.76
5.6.300.0000.51914.30
5.6.290.0030.42714.46
5.6.280.0030.42117.80
5.6.270.0000.42714.76
5.6.260.0100.50214.63
5.6.250.0070.51714.77
5.6.240.0000.43714.47
5.6.230.0000.52214.46
5.6.220.0030.48814.45
5.6.210.0070.35517.42
5.6.200.0070.33816.31
5.6.190.0070.38717.37
5.6.180.0130.30417.57
5.6.170.0100.35617.48
5.6.160.0030.34317.35
5.6.150.0070.39316.25
5.6.140.0020.36416.28
5.6.130.0050.35016.22
5.6.120.0050.35817.65
5.6.110.0080.36117.75
5.6.100.0070.38817.80
5.6.90.0050.38917.77
5.6.80.0050.35217.37
5.6.70.1720.35517.50
5.6.60.0030.41814.48
5.6.50.0030.50414.29
5.6.40.0030.50614.37
5.6.30.0030.45414.28
5.6.20.0070.43514.08
5.6.10.0030.52514.38
5.6.00.0030.54114.06
5.5.380.0030.44814.33
5.5.370.0070.47714.46
5.5.360.0000.56214.50
5.5.350.0080.42517.35
5.5.340.0020.34816.19
5.5.330.0020.33817.36
5.5.320.0170.40017.27
5.5.310.0180.37517.19
5.5.300.0030.35116.18
5.5.290.0020.31416.15
5.5.280.0050.33817.37
5.5.270.0050.34817.66
5.5.260.0030.40317.63
5.5.250.0100.36617.56
5.5.240.0120.40817.27
5.5.230.0030.48214.46
5.5.220.0070.52414.38
5.5.210.0070.54314.43
5.5.200.0030.52914.44
5.5.190.0030.50114.33
5.5.180.0070.53413.85
5.5.170.0000.53814.20
5.5.160.0100.53314.00
5.5.150.0030.54814.18
5.5.140.0070.43314.09
5.5.130.0030.44114.07
5.5.120.0070.51414.53
5.5.110.0070.44614.34
5.5.100.0030.50614.56
5.5.90.0070.51114.48
5.5.80.0000.50214.45
5.5.70.0070.50314.10
5.5.60.0000.43314.29
5.5.50.0100.41914.22
5.5.40.0000.55314.01
5.5.30.0070.51014.06
5.5.20.0070.52514.37
5.5.10.0100.53214.37
5.5.00.0030.44014.23
5.4.450.0170.37116.06
5.4.440.0170.39416.10
5.4.430.0170.38516.06
5.4.420.0130.30816.12
5.4.410.0150.38516.00
5.4.400.0150.35715.98
5.4.390.0450.35715.97
5.4.380.0130.35615.75
5.4.370.0120.33315.75
5.4.360.0180.38015.89
5.4.350.0170.34815.81
5.4.340.0120.37915.93
5.4.330.0030.53512.71
5.4.320.0120.39515.89
5.4.310.0150.34715.96
5.4.300.0200.35815.96
5.4.290.0100.39315.89
5.4.280.0170.40615.95
5.4.270.0130.35415.85
5.4.260.0120.38015.89
5.4.250.0220.35715.94
5.4.240.0130.32115.89
5.4.230.0100.38215.96
5.4.220.0070.37715.74
5.4.210.0100.40115.94
5.4.200.0120.36715.74
5.4.190.0200.37715.96
5.4.180.0150.36715.75
5.4.170.0120.37315.94
5.4.160.0170.34016.00
5.4.150.0120.37915.80
5.4.140.0120.37614.58
5.4.130.0130.41414.51
5.4.120.0130.37414.51
5.4.110.0130.37314.54
5.4.100.0150.34614.60
5.4.90.0180.34214.46
5.4.80.0150.38114.41
5.4.70.0120.41314.59
5.4.60.0180.36714.58
5.4.50.0120.34314.59
5.4.40.0130.32814.58
5.4.30.0180.33814.51
5.4.20.0320.30814.53
5.4.10.0120.34214.56
5.4.00.0120.33614.30

preferences:
41.12 ms | 401 KiB | 5 Q