3v4l.org

run code in 300+ PHP versions simultaneously
<?php while (true) { $reader = new XMLReader(); $reader->xml('<?xml version="1.0" encoding="utf-8"?><id>1234567890</id>'); while ($reader->read()) { $reader->expand(); } echo memory_get_peak_usage(true) . PHP_EOL; }

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.60.0360.03618.68
8.3.50.0300.04521.34
8.3.40.0160.03518.97
8.3.30.0070.04319.42
8.3.20.0140.01820.61
8.3.10.0200.01320.73
8.3.00.0170.01719.63
8.2.180.0260.03216.74
8.2.170.0320.02922.96
8.2.160.0100.05320.72
8.2.150.0100.02024.18
8.2.140.0130.02324.66
8.2.130.0180.01426.16
8.2.120.0150.01522.54
8.2.110.0140.02819.55
8.2.100.0290.01918.12
8.2.90.0070.04119.48
8.2.80.0070.03617.97
8.2.70.0100.03717.88
8.2.60.0060.03218.18
8.2.50.0220.02618.07
8.2.40.0200.01318.41
8.2.30.0160.02218.48
8.2.20.0030.04018.15
8.2.10.0060.02618.33
8.2.00.0070.02718.05
8.1.280.0200.03625.92
8.1.270.0030.03124.21
8.1.260.0160.01926.35
8.1.250.0210.01028.09
8.1.240.0130.01921.31
8.1.230.0250.01817.77
8.1.220.0070.03617.77
8.1.210.0100.03318.77
8.1.200.0130.02017.61
8.1.190.0030.02917.60
8.1.180.0180.02518.10
8.1.170.0130.02918.69
8.1.160.0130.02622.30
8.1.150.0140.02719.23
8.1.140.0220.01317.79
8.1.130.0070.03218.16
8.1.120.0130.02017.78
8.1.110.0100.03217.80
8.1.100.0070.03817.73
8.1.90.0000.04017.84
8.1.80.0030.03217.75
8.1.70.0170.01717.76
8.1.60.0230.02217.95
8.1.50.0180.01817.86
8.1.40.0000.03318.00
8.1.30.0140.02517.89
8.1.20.0160.02917.86
8.1.10.0260.01917.86
8.1.00.0200.02317.96
8.0.300.0140.02718.77
8.0.290.0030.02816.88
8.0.280.0120.02818.66
8.0.270.0140.02717.15
8.0.260.0100.02317.46
8.0.250.0130.02217.13
8.0.240.0000.04417.18
8.0.230.0170.02717.30
8.0.220.0030.04017.18
8.0.210.0130.02717.22
8.0.200.0170.01417.12
8.0.190.0170.03017.22
8.0.180.0070.02817.11
8.0.170.0140.02117.23
8.0.160.0100.02817.24
8.0.150.0100.02117.13
8.0.140.0140.03217.24
8.0.130.0160.02813.74
8.0.120.0100.02717.02
8.0.110.0100.02417.03
8.0.100.0110.02116.88
8.0.90.0100.03017.01
8.0.80.0270.07317.09
8.0.70.0030.02817.11
8.0.60.0040.03917.17
8.0.50.0100.03017.00
8.0.30.0700.09917.28
8.0.20.0520.08617.40
8.0.10.0070.02617.23
8.0.00.0580.08416.99
7.4.330.0100.03315.32
7.4.320.0030.03016.71
7.4.300.0110.02816.63
7.4.290.0030.03816.63
7.4.280.0190.02616.68
7.4.270.0130.02016.72
7.4.260.0060.02916.70
7.4.250.0130.03016.48
7.4.240.0180.01516.66
7.4.230.0130.02916.79
7.4.220.0300.09916.73
7.4.210.0290.06516.59
7.4.200.0070.02616.51
7.4.160.0530.09416.71
7.4.150.0370.08817.40
7.4.140.0590.10117.86
7.4.130.0370.11316.60
7.4.120.0510.10016.73
7.4.110.0610.11116.83
7.4.100.0420.07916.66
7.4.90.0660.09116.63
7.4.80.0310.08519.39
7.4.70.0340.09116.60
7.4.60.0590.05316.58
7.4.50.0130.03016.79
7.4.40.0400.07016.62
7.4.30.0650.07216.80
7.4.00.0220.04915.01
7.3.330.0100.02313.44
7.3.320.0160.02313.43
7.3.310.0160.02916.49
7.3.300.0060.02616.45
7.3.290.0240.08416.43
7.3.280.0440.10716.45
7.3.270.0520.09417.40
7.3.260.0810.07316.63
7.3.250.0650.10816.64
7.3.240.0610.10416.46
7.3.230.0520.07916.47
7.3.210.0430.08716.57
7.3.200.0680.09019.39
7.3.190.0470.07816.48
7.3.180.0200.09616.35
7.3.170.0760.07616.38
7.3.160.0520.10516.54
7.3.120.0160.06914.96
7.3.110.0270.04015.13
7.3.100.0200.06315.14
7.3.90.0200.04414.98
7.3.80.0160.04615.16
7.3.70.0100.05714.95
7.3.60.0130.05315.00
7.3.50.0130.05814.92
7.3.40.0150.04414.86
7.3.30.0160.04514.83
7.3.20.0100.05916.84
7.3.10.0130.04316.66
7.3.00.0240.03116.75
7.2.330.0660.09116.79
7.2.320.0500.09916.87
7.2.310.0730.11816.93
7.2.300.0540.08816.97
7.2.290.0580.11016.88
7.2.250.0130.05615.10
7.2.240.0260.05515.28
7.2.230.0200.06115.04
7.2.220.0130.07015.08
7.2.210.0210.06215.26
7.2.200.0100.07515.03
7.2.190.0100.05215.09
7.2.180.0170.04715.20
7.2.170.0160.05514.80
7.2.00.0170.04719.30
7.1.330.0260.06015.99
7.1.320.0130.06915.86
7.1.310.0160.05315.77
7.1.300.0100.07415.80
7.1.290.0200.06315.89
7.1.280.0190.04215.71
7.1.270.0160.06215.86
7.1.260.0100.04915.80
7.1.100.0100.05018.00
7.1.70.0070.04717.26
7.1.60.0270.05819.32
7.1.50.0340.05717.34
7.0.200.0500.05316.89

preferences:
41.15 ms | 401 KiB | 5 Q