3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringVar = 'iAmSomeRandomString'; $stringArr = array('rando' => 'iAmSomeRandomString'); echo "Start"; $start = microtime(true); echo $stringVar; $laptime = microtime(true); echo $stringArr['rando']; $stop = microtime(true); echo "\n"; printf("%13s: %1.6f\n", "First case", $laptime-$start); printf("%13s: %1.6f\n", "Second case", $stop-$laptime);

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.0110.00714.67
7.4.00.0070.00814.63
7.3.130.0100.00714.94
7.3.120.0050.01214.76
7.3.110.0100.00714.67
7.3.100.0070.00814.74
7.3.90.0090.00314.84
7.3.80.0100.00414.90
7.3.70.0050.00714.84
7.3.60.0030.00714.88
7.3.50.0050.01014.84
7.3.40.0070.00814.73
7.3.30.0050.01014.66
7.3.20.0040.00616.54
7.3.10.0110.00916.58
7.3.00.0130.00716.53
7.2.260.0140.00714.94
7.2.250.0110.00715.19
7.2.240.0070.01014.86
7.2.230.0030.01314.94
7.2.220.0060.00614.82
7.2.210.0030.00914.91
7.2.200.0090.00614.99
7.2.190.0070.00714.77
7.2.180.0050.01214.89
7.2.170.0060.00715.07
7.2.160.0110.00014.84
7.2.150.0030.01016.57
7.2.140.0100.00716.73
7.2.130.0110.01216.64
7.2.120.0110.01116.68
7.2.110.0230.00516.66
7.2.100.0140.00716.44
7.2.90.0270.00716.70
7.2.80.0200.00816.43
7.2.70.0250.00516.78
7.2.60.0220.00616.67
7.2.50.0230.01016.53
7.2.40.0200.00816.84
7.2.30.0230.00616.95
7.2.20.0130.00916.52
7.2.10.0300.00416.59
7.2.00.0160.01017.40
7.1.330.0090.00515.62
7.1.320.0050.00915.69
7.1.310.0040.00715.85
7.1.300.0070.00615.82
7.1.290.0070.00715.75
7.1.280.0050.00915.64
7.1.270.0050.00715.64
7.1.260.0060.00815.67
7.1.250.0320.01215.63
7.1.240.0110.00015.54
7.1.230.0140.00015.89
7.1.220.0000.00815.58
7.1.210.0110.00415.81
7.1.200.0040.00415.79
7.1.190.0030.01315.90
7.1.180.0030.01015.59
7.1.170.0140.00015.73
7.1.160.0070.00715.84
7.1.150.0130.00015.72
7.1.140.0110.00315.80
7.1.130.0000.01115.91
7.1.120.0090.00615.84
7.1.110.0060.00615.51
7.1.100.0070.00715.90
7.1.90.0070.00715.77
7.1.80.0000.01515.75
7.1.70.0020.00816.46
7.1.60.0020.01417.54
7.1.50.0030.00916.35
7.1.40.0070.00715.95
7.1.30.0080.00015.82
7.1.20.0040.01115.91
7.1.10.0060.01015.54
7.1.00.0020.04519.04
7.0.330.0000.01515.23
7.0.320.0000.01315.46
7.0.310.0030.00615.39
7.0.300.0000.00815.41
7.0.290.0030.01015.18
7.0.280.0030.01315.49
7.0.270.0000.01415.55
7.0.260.0090.00615.57
7.0.250.0030.00715.39
7.0.240.0080.00315.27
7.0.230.0060.00915.39
7.0.220.0030.01015.49
7.0.210.0090.00315.63
7.0.200.0050.00715.95
7.0.190.0070.00715.36
7.0.180.0040.00715.63
7.0.170.0070.00715.22
7.0.160.0100.00315.41
7.0.150.0040.00815.39
7.0.140.0030.00515.45
7.0.130.0060.00615.31
7.0.120.0030.00615.35
7.0.110.0040.00715.58
7.0.100.0030.00715.46
7.0.90.0070.00415.57
7.0.80.0070.00715.39
7.0.70.0030.00615.39
7.0.60.0140.04217.70
7.0.50.0040.03116.65
7.0.40.0450.03316.62
7.0.30.0470.04816.92
7.0.20.0460.03316.82
7.0.10.0430.03516.81
7.0.00.0430.03416.91
5.6.400.0060.00914.55
5.6.390.0040.01114.18
5.6.380.0100.00314.07
5.6.370.0060.00914.54
5.6.360.0070.01014.63
5.6.350.0030.00614.23
5.6.340.0030.01414.43
5.6.330.0040.01514.29
5.6.320.0040.01414.26
5.6.310.0070.01014.63
5.6.300.0080.00014.54
5.6.290.0000.01414.50
5.6.280.0050.04117.58
5.6.270.0000.01014.58
5.6.260.0030.01014.58
5.6.250.0100.00314.48
5.6.240.0060.01014.61
5.6.230.0060.00914.24
5.6.220.0030.00714.27
5.6.210.0030.03217.52
5.6.200.0050.04916.26
5.6.190.0450.03717.53
5.6.180.0380.04017.69
5.6.170.0470.03217.50
5.6.160.0360.03417.42
5.6.150.0470.03317.41
5.6.140.0450.02917.27
5.6.130.0510.03117.19
5.6.120.0110.03217.37
5.6.110.0080.04117.35
5.6.100.0200.03217.41
5.6.90.0410.03417.40
5.6.80.0210.04016.85
5.6.70.0350.03717.00
5.6.60.0380.03517.13
5.6.50.0420.03217.17
5.6.40.0380.03317.06
5.6.30.0400.03417.10
5.6.20.0420.02917.10
5.6.10.0270.03417.00
5.6.00.0440.02917.11
5.5.380.0110.00414.31
5.5.370.0120.00914.14
5.5.360.0060.00814.26
5.5.350.0050.04717.34
5.5.340.0070.03316.09
5.5.330.0320.03417.30
5.5.320.0400.03417.27
5.5.310.0430.02817.42
5.5.300.0430.03217.18
5.5.290.0420.03017.26
5.5.280.0060.03616.90
5.5.270.0030.04017.10
5.5.260.0420.02717.17
5.5.250.0430.03317.18
5.5.240.0470.03216.82
5.5.230.0300.03416.84
5.5.220.0490.02516.81
5.5.210.0380.04016.92
5.5.200.0320.03416.80
5.5.190.0330.03316.92
5.5.180.0440.04516.76
5.5.170.0070.01014.06
5.5.160.0400.03016.92
5.5.150.0390.03516.97
5.5.140.0400.03316.70
5.5.130.0350.03516.71
5.5.120.0270.03916.80
5.5.110.0270.03116.79
5.5.100.0350.03116.89
5.5.90.0380.03116.71
5.5.80.0410.03616.75
5.5.70.0340.03416.82
5.5.60.0370.03216.80
5.5.50.0320.04316.73
5.5.40.0250.02516.67
5.5.30.0080.03216.70
5.5.20.0060.03116.59
5.5.10.0370.03816.76
5.5.00.0370.03316.68

preferences:
46.79 ms | 403 KiB | 5 Q