3v4l.org

run code in 300+ PHP versions simultaneously
<?php srand(5566); echo rand()."\n"; mt_srand(5566); echo mt_rand()."\n";

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.70.0110.01118.31
8.3.60.0430.01021.95
8.3.50.0160.00322.13
8.3.40.0290.00521.95
8.3.30.0280.00621.95
8.3.20.0250.00321.95
8.3.10.0260.00721.95
8.3.00.0320.00221.95
8.2.190.0270.00917.97
8.2.180.0340.00721.95
8.2.170.0400.00221.95
8.2.160.0400.00321.95
8.2.150.0410.00721.95
8.2.140.0410.00521.95
8.2.130.0310.01021.95
8.2.120.0360.00221.95
8.2.110.0230.00821.95
8.2.100.0240.01121.95
8.2.90.0300.00921.95
8.2.80.0300.00621.95
8.2.70.0220.00621.95
8.2.60.0190.00620.38
8.2.50.0200.00420.38
8.2.40.0170.00520.42
8.2.30.0190.00119.69
8.2.20.0160.00719.70
8.2.10.0250.00319.61
8.2.00.0160.00919.71
8.1.280.0320.00521.95
8.1.270.0370.00721.95
8.1.260.0300.00521.95
8.1.250.0210.00921.95
8.1.240.0190.01021.95
8.1.230.0280.00521.95
8.1.220.0280.00721.95
8.1.210.0280.00521.95
8.1.200.0210.01021.95
8.1.190.0200.00820.29
8.1.180.0190.00720.25
8.1.170.0180.00620.34
8.1.160.0180.00519.56
8.1.150.0180.00819.60
8.1.140.0160.00719.55
8.1.130.0200.00519.54
8.1.120.0180.00319.60
8.1.110.0140.00919.67
8.1.100.0170.00519.67
8.1.90.0200.00719.58
8.1.80.0220.00719.62
8.1.70.0170.00819.54
8.1.60.0180.00519.71
8.1.50.0120.01119.64
8.1.40.0140.00819.68
8.1.30.0170.00619.58
8.1.20.0220.00319.74
8.1.10.0210.00419.51
8.1.00.0160.00619.57
8.0.300.0200.00621.95
8.0.290.0220.00621.95
8.0.280.0160.00519.25
8.0.270.0140.00819.28
8.0.260.0190.00519.30
8.0.250.0160.00419.28
8.0.240.0140.00719.29
8.0.230.0180.00319.31
8.0.220.0190.00719.28
8.0.210.0200.00419.26
8.0.200.0160.00619.30
8.0.190.0200.00519.30
8.0.180.0190.00519.28
8.0.170.0180.00419.28
8.0.160.0160.00419.33
8.0.150.0170.00319.28
8.0.140.0160.00519.26
8.0.130.0190.00319.26
8.0.120.0150.01119.29
8.0.110.0190.00619.26
8.0.100.0210.00419.27
8.0.90.0190.00819.29
8.0.80.0180.00919.27
8.0.70.0170.00619.25
8.0.60.0190.00619.25
8.0.50.0170.00719.25
8.0.30.0170.00618.43
8.0.20.0150.00718.44
8.0.10.0120.00818.46
8.0.00.0140.00918.40
7.4.330.0160.00719.05
7.4.320.0170.00519.18
7.4.300.0130.00719.19
7.4.290.0170.00419.18
7.4.280.0150.00519.15
7.4.270.0120.00919.19
7.4.260.0190.00319.18
7.4.250.0190.00419.15
7.4.240.0170.00519.18
7.4.230.0180.00319.19
7.4.220.0180.00219.15
7.4.210.0140.00719.18
7.4.200.0200.00619.17
7.4.190.0150.00519.16
7.4.180.0110.00719.17
7.4.160.0150.00518.27
7.4.150.0140.00618.27
7.4.140.0120.00918.14
7.4.130.0150.00718.14
7.4.120.0130.00917.94
7.4.110.0140.00617.81
7.4.100.0120.00817.77
7.4.90.0120.00717.72
7.4.80.0130.00717.60
7.4.70.0120.00717.61
7.4.60.0120.00817.60
7.4.50.0100.01017.58
7.4.40.0120.00817.62
7.4.30.0120.00717.63
7.4.20.0110.00817.61
7.4.10.0100.00817.36
7.4.00.0120.00617.16
7.3.330.0140.00719.16
7.3.320.0130.00719.10
7.3.310.0160.00419.15
7.3.300.0160.00719.12
7.3.290.0190.00319.10
7.3.280.0130.01019.15
7.3.270.0110.00718.13
7.3.260.0140.00618.10
7.3.250.0150.00618.09
7.3.240.0140.00617.88
7.3.230.0110.00717.73
7.3.220.0130.00517.67
7.3.210.0140.00617.71
7.3.200.0140.00717.55
7.3.190.0140.00817.50
7.3.180.0150.00617.47
7.3.170.0160.00617.59
7.3.160.0150.00517.54
7.3.150.0120.00817.53
7.3.140.0120.00717.52
7.3.130.0130.00617.31
7.3.120.0120.00617.01
7.3.110.0120.00817.08
7.3.100.0130.00517.03
7.3.90.0120.00517.10
7.3.80.0120.00616.94
7.3.70.0070.00916.46
7.3.60.0130.00516.54
7.3.50.0100.00716.49
7.3.40.0080.00816.47
7.3.30.0080.00716.47
7.3.20.0110.00617.21
7.3.10.0100.00817.16
7.3.00.0100.00617.17
7.2.340.0160.00517.73
7.2.330.0160.00817.69
7.2.320.0170.00817.62
7.2.310.0140.00817.57
7.2.300.0150.00917.62
7.2.290.0150.00817.63
7.2.280.0190.00517.60
7.2.270.0170.00717.60
7.2.260.0150.01017.33
7.2.250.0150.00817.09
7.2.240.0140.01017.17
7.2.230.0150.00617.15
7.2.220.0140.00717.17
7.2.210.0130.00716.95
7.2.200.0140.00616.58
7.2.190.0130.00816.58
7.2.180.0120.00816.55
7.2.170.0130.00716.59
7.2.160.0130.00716.71
7.2.150.0150.00717.36
7.2.140.0130.00717.38
7.2.130.0110.00917.43
7.2.120.0120.00817.37
7.2.110.0130.00917.34
7.2.100.0170.00617.36
7.2.90.0140.00817.40
7.2.80.0130.00817.36
7.2.70.0130.00817.35
7.2.60.0120.00817.36
7.2.50.0120.00917.38
7.2.40.0130.00917.52
7.2.30.0150.00817.46
7.2.20.0170.00717.59
7.2.10.0140.00817.57
7.2.00.0160.00917.53
7.1.330.0150.00817.03
7.1.320.0170.00917.01
7.1.310.0160.00616.94
7.1.300.0150.00916.64
7.1.290.0120.00816.66
7.1.280.0120.00816.68
7.1.270.0150.00616.59
7.1.260.0160.00416.53
7.1.250.0160.00616.57
7.1.240.0160.00616.63
7.1.230.0210.00716.65
7.1.220.0150.00616.59
7.1.210.0140.00816.62
7.1.200.0150.00716.59
7.1.190.0160.00716.61
7.1.180.0170.00616.62
7.1.170.0150.00716.59
7.1.160.0170.00816.88
7.1.150.0160.00716.73
7.1.140.0150.01016.72
7.1.130.0180.00616.74
7.1.120.0160.00816.74
7.1.110.0170.00616.74
7.1.100.0160.00616.74
7.1.90.0170.00816.72
7.1.80.0210.00616.69
7.1.70.0160.00716.59
7.1.60.0150.00817.77
7.1.50.0160.00717.71
7.1.40.0170.00717.74
7.1.30.0160.00817.73
7.1.20.0180.00617.70
7.1.10.0160.00616.57
7.1.00.0120.00816.88
7.0.330.0170.00616.46
7.0.320.0200.00416.77
7.0.310.0160.00916.76
7.0.300.0230.00716.94
7.0.290.0180.00716.93
7.0.280.0180.00816.94
7.0.270.0190.00616.90
7.0.260.0200.00816.90
7.0.250.0200.00716.93
7.0.240.0180.00716.87
7.0.230.0280.00416.90
7.0.220.0170.00816.89
7.0.210.0200.00816.81
7.0.200.0160.00916.83
7.0.190.0180.00916.81
7.0.180.0160.00916.78
7.0.170.0160.00916.81
7.0.160.0170.00716.78
7.0.150.0160.00916.76
7.0.140.0220.00716.76
7.0.130.0160.00916.79
7.0.120.0160.00816.77
7.0.110.0170.00716.76
7.0.100.0250.00716.74
7.0.90.0180.00716.72
7.0.80.0200.00516.76
7.0.70.0180.00616.74
7.0.60.0160.00916.70
7.0.50.0180.00716.77
7.0.40.0170.00816.80
7.0.30.0180.00616.78
7.0.20.0160.00916.76
7.0.10.0170.00816.80
7.0.00.0250.00716.77
5.6.400.0160.00916.39
5.6.390.0150.00916.40
5.6.380.0160.00816.45
5.6.370.0190.00717.03
5.6.360.0190.00917.02
5.6.350.0160.00917.03
5.6.340.0190.00916.99
5.6.330.0160.00916.96
5.6.320.0160.00917.00
5.6.310.0140.01116.96
5.6.300.0190.01217.32
5.6.290.0150.01617.35
5.6.280.0170.01417.31
5.6.270.0160.01317.30
5.6.260.0160.01417.30
5.6.250.0130.01717.29
5.6.240.0160.01517.32
5.6.230.0160.01517.33
5.6.220.0190.01217.32
5.6.210.0160.01317.35
5.6.200.0160.01217.35
5.6.190.0150.01317.34
5.6.180.0170.01217.32
5.6.170.0160.01417.32
5.6.160.0170.01317.34
5.6.150.0150.01317.27
5.6.140.0190.01217.30
5.6.130.0160.01517.31
5.6.120.0150.01217.34
5.6.110.0170.01517.30
5.6.100.0160.01517.30
5.6.90.0140.01517.29
5.6.80.0160.01017.21
5.6.70.0160.01217.26
5.6.60.0160.01217.26
5.6.50.0150.01417.23
5.6.40.0160.01317.23
5.6.30.0160.01417.23
5.6.20.0180.01217.20
5.6.10.0130.01617.21
5.6.00.0150.01317.22

preferences:
16.2 ms | 403 KiB | 5 Q