3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* test if indices work on arrays with non-numerical keys */ $arr = array( 'a' => 1, 'b' => 2); var_dump($arr)

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)
5.4.280.0300.05319.10
5.4.270.0200.05718.80
5.4.260.0230.04319.08
5.4.250.0230.05019.24
5.4.240.0270.03319.08
5.4.230.0300.03019.19
5.4.220.0430.06718.93
5.4.210.0270.03718.79
5.4.200.0300.03719.08
5.4.190.0230.05318.93
5.4.180.0230.05018.79
5.4.170.0470.03019.24
5.4.160.0270.03719.23
5.4.150.0370.04719.06
5.4.140.0300.04316.45
5.4.130.0370.06016.31
5.4.120.0300.03316.27
5.4.110.0370.05316.44
5.4.100.0400.03716.21
5.4.90.0430.05716.41
5.4.80.0430.04016.38
5.4.70.0430.04016.41
5.4.60.0370.04016.40
5.4.50.0330.06016.38
5.4.40.0330.06016.38
5.4.30.0300.04016.27
5.4.20.0330.03016.27
5.4.10.0370.06716.45
5.4.00.0370.07015.70
5.3.280.0370.06014.55
5.3.270.0430.04014.55
5.3.260.0500.05014.44
5.3.250.0400.06314.55
5.3.240.0370.04314.44
5.3.230.0370.06714.65
5.3.220.0330.08314.40
5.3.210.0300.04714.41
5.3.200.0400.06314.44
5.3.190.0400.03714.46
5.3.180.0270.04714.50
5.3.170.0370.05714.47
5.3.160.0230.04014.47
5.3.150.0230.03714.41
5.3.140.0200.04014.57
5.3.130.0270.03314.54
5.3.120.0330.04014.39
5.3.110.0300.07014.42
5.3.100.0500.05014.00
5.3.90.0230.03314.07
5.3.80.0370.06713.84
5.3.70.0270.05013.96
5.3.60.0270.07313.95
5.3.50.0300.05013.78
5.3.40.0400.06313.77
5.3.30.0230.06313.86
5.3.20.0330.06013.52
5.3.10.0300.05713.54
5.3.00.0430.06013.59
5.2.170.0370.05012.31
5.2.160.0300.05712.31
5.2.150.0270.04712.31
5.2.140.0300.05312.31
5.2.130.0400.05012.31
5.2.120.0230.05012.31
5.2.110.0270.05712.31
5.2.100.0230.03712.31
5.2.90.0230.05712.31
5.2.80.0270.03312.31
5.2.70.0270.05712.31
5.2.60.0230.03712.31
5.2.50.0300.04312.31
5.2.40.0200.05312.31
5.2.30.0170.04712.31
5.2.20.0230.05312.31
5.2.10.0200.03312.31
5.2.00.0200.05712.31
5.1.60.0200.04712.31
5.1.50.0200.05012.31
5.1.40.0230.04712.31
5.1.30.0170.03712.31
5.1.20.0200.04312.31
5.1.10.0170.03012.31
5.1.00.0200.03712.31
5.0.50.0070.03012.31
5.0.40.0200.03712.31
5.0.30.0170.05012.31
5.0.20.0100.02312.31
5.0.10.0130.02712.31
5.0.00.0130.04312.31
4.4.90.0030.02712.31
4.4.80.0030.02312.31
4.4.70.0100.03712.31
4.4.60.0030.02312.31
4.4.50.0130.02312.31
4.4.40.0100.04712.31
4.4.30.0100.02312.31
4.4.20.0130.03712.31
4.4.10.0130.02012.31
4.4.00.0170.04712.31
4.3.110.0170.02312.31
4.3.100.0170.01312.31
4.3.90.0100.03712.31
4.3.80.0170.04712.31
4.3.70.0170.02712.31
4.3.60.0070.03712.31
4.3.50.0130.02312.31
4.3.40.0130.05312.31
4.3.30.0070.02012.31
4.3.20.0130.01312.31
4.3.10.0100.03312.31
4.3.00.0100.01712.31

preferences:
167.79 ms | 1394 KiB | 7 Q