3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = hrtime(true); $a = array(); for($i=0;$i<10000;$i++) { $a[] = $i; } $end = hrtime(true); $time = $end - $start; echo $time;

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)
8.3.40.0140.00718.79
8.3.30.0070.00718.79
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.170.0090.01219.22
8.2.160.0140.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00026.35
8.2.110.0000.01021.18
8.2.100.0030.00918.03
8.2.90.0000.00818.16
8.2.80.0030.00519.27
8.2.70.0040.00418.05
8.2.60.0050.00318.22
8.2.50.0050.00318.10
8.2.40.0000.00821.11
8.2.30.0080.00019.49
8.2.20.0050.00218.29
8.2.10.0020.00519.37
8.2.00.0030.00619.54
8.1.270.0060.00323.99
8.1.260.0000.00828.09
8.1.250.0030.00628.09
8.1.240.0090.00019.65
8.1.230.0080.00422.77
8.1.220.0040.00418.16
8.1.210.0050.00318.85
8.1.200.0070.00317.60
8.1.190.0030.00517.60
8.1.180.0030.00618.10
8.1.170.0080.00018.96
8.1.160.0000.00819.11
8.1.150.0000.00719.11
8.1.140.0000.00719.14
8.1.130.0040.00420.39
8.1.120.0040.00417.66
8.1.110.0000.00917.78
8.1.100.0040.00417.69
8.1.90.0040.00417.68
8.1.80.0070.00317.74
8.1.70.0000.00717.73
8.1.60.0030.00617.74
8.1.50.0030.00517.71
8.1.40.0050.00317.67
8.1.30.0000.00817.94
8.1.20.0040.00717.80
8.1.10.0030.00617.75
8.1.00.0000.00817.63
8.0.300.0000.00720.46
8.0.290.0060.00316.75
8.0.280.0070.00018.64
8.0.270.0070.00017.18
8.0.260.0000.00718.71
8.0.250.0040.00417.26
8.0.240.0030.00317.15
8.0.230.0080.00017.24
8.0.220.0070.00017.05
8.0.210.0030.00317.09
8.0.200.0000.00717.30
8.0.190.0040.00417.25
8.0.180.0040.00417.14
8.0.170.0040.00417.14
8.0.160.0050.00317.18
8.0.150.0000.00717.14
8.0.140.0040.00417.13
8.0.130.0000.00613.54
8.0.120.0060.00617.06
8.0.110.0040.00417.10
8.0.100.0000.00717.12
8.0.90.0080.00017.20
8.0.80.0060.01117.14
8.0.70.0000.00717.13
8.0.60.0050.00217.05
8.0.50.0050.00317.20
8.0.30.0080.01017.11
8.0.20.0080.00717.26
8.0.10.0060.01217.29
8.0.00.0030.01317.24
7.4.330.0050.00015.55
7.4.320.0030.00316.91
7.4.300.0000.00616.85
7.4.290.0000.00716.64
7.4.280.0060.00316.76
7.4.270.0000.00716.81
7.4.260.0030.00313.57
7.4.250.0030.00516.74
7.4.240.0000.00816.76
7.4.230.0000.00816.96
7.4.220.0030.00316.84
7.4.210.0070.01016.86
7.4.200.0040.00416.93
7.4.160.0000.01816.86
7.4.150.0110.01116.76
7.4.140.0120.00916.70
7.4.130.0060.00916.70
7.4.120.0090.01116.86
7.4.110.0000.01516.70
7.4.100.0120.00316.96
7.4.90.0090.00616.81
7.4.80.0080.00816.73
7.4.70.0090.00916.94
7.4.60.0100.00616.85
7.4.50.0060.00816.64
7.4.40.0100.00616.73
7.4.30.0160.00616.85
7.4.20.0130.01716.61
7.4.10.0100.01016.95
7.4.00.0030.01416.75
7.3.330.0070.00016.57
7.3.320.0000.00613.32
7.3.310.0030.00316.65
7.3.300.0070.00016.57
7.3.290.0100.00716.57
7.3.270.0120.00316.53
7.3.260.0120.00916.57
7.3.250.0170.00316.63
7.3.240.0090.00616.57
7.3.230.0060.01616.64
7.3.220.0080.00816.67
7.3.210.0030.02016.48
7.3.200.0120.00616.56
7.3.190.0100.01316.56
7.3.180.0090.00616.51
7.3.170.0190.00016.49
7.3.160.0110.00416.46
7.3.150.0110.00816.54
7.3.140.0040.01816.52
7.3.130.0140.00716.55
7.3.120.0070.01016.55
7.3.110.0090.01016.45
7.3.100.0170.00316.48
7.3.90.0080.01516.84
7.3.80.0000.01516.53
7.3.70.0090.00916.62
7.3.60.0100.01016.70
7.3.50.0090.00616.67
7.3.40.0080.00616.68
7.3.30.0060.00916.73
7.3.20.0170.00916.75
7.3.10.0100.01416.72
7.3.00.0210.00316.59

preferences:
54.56 ms | 400 KiB | 5 Q