3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_replace( '/foo/', 'bar', null );

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.4.120.0100.01020.39
8.4.110.0040.00422.23
8.4.100.0150.00518.02
8.4.90.0120.00918.38
8.4.80.0060.00319.81
8.4.70.0100.01118.42
8.4.60.0110.00918.69
8.4.50.0050.00418.52
8.4.40.0120.00318.46
8.4.30.0130.00622.65
8.4.20.0140.00717.96
8.4.10.0040.00419.62
8.3.250.0120.00618.67
8.3.240.0100.00816.75
8.3.230.0080.01016.89
8.3.220.0130.00217.20
8.3.210.0100.00918.85
8.3.200.0070.00416.93
8.3.190.0060.00517.26
8.3.180.0100.00816.75
8.3.170.0140.00420.72
8.3.160.0110.00716.96
8.3.150.0070.01120.70
8.3.140.0040.00416.73
8.3.130.0050.00316.81
8.3.120.0040.01120.79
8.3.110.0080.00020.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0040.00418.55
8.3.70.0090.01216.73
8.3.60.0110.00417.00
8.3.50.0070.01416.74
8.3.40.0150.00022.09
8.3.30.0110.00321.71
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.290.0080.00820.56
8.2.280.0080.00418.38
8.2.270.0120.00617.44
8.2.260.0060.00318.26
8.2.250.0150.00418.57
8.2.240.0070.00318.46
8.2.230.0070.00022.58
8.2.220.0070.00337.54
8.2.210.0100.00726.77
8.2.200.0000.00918.67
8.2.190.0070.01418.46
8.2.180.0110.00325.92
8.2.170.0110.00418.99
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00721.00
8.2.110.0140.00822.20
8.2.100.0120.00520.14
8.2.90.0160.00418.79
8.2.80.0180.01018.61
8.2.70.0260.00518.80
8.2.60.0260.00518.82
8.2.50.0120.00618.90
8.2.40.0120.00318.83
8.2.30.0150.00318.67
8.2.20.0140.00218.87
8.2.10.0180.00718.79
8.2.00.0100.01118.93
8.1.330.0110.00821.70
8.1.320.0110.00916.05
8.1.310.0170.00016.57
8.1.300.0070.00318.00
8.1.290.0060.00330.84
8.1.280.0070.01325.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.00518.54
8.1.230.0140.00918.45
8.1.220.0050.01118.48
8.1.210.0230.00819.89
8.1.200.0100.01118.49
8.1.190.0140.00718.42
8.1.180.0310.00318.36
8.1.170.0230.00618.45
8.1.160.0170.00318.53
8.1.150.0180.00920.64
8.1.140.0210.00718.49
8.1.130.0140.00318.62
8.1.120.0140.00118.56
8.1.110.0110.00818.53
8.1.100.0170.01018.55
8.1.90.0160.00418.49
8.1.80.0100.00618.53
8.1.70.0100.00818.47
8.1.60.0200.00318.60
8.1.50.0190.00418.48
8.1.40.0150.00218.64
8.1.30.0060.00918.96
8.1.20.0110.00718.78
8.1.10.0170.00818.72
8.1.00.0090.00618.49
8.0.300.0180.00317.98
8.0.290.0180.00817.86
8.0.280.0130.00317.84
8.0.270.0160.00317.84
8.0.260.0270.00217.79
8.0.250.0200.00417.72
8.0.240.0160.00717.87
8.0.230.0200.00518.02
8.0.220.0250.00717.81
8.0.210.0240.01017.90
8.0.200.0250.00917.91
8.0.190.0190.00817.83
8.0.180.0260.00217.69
8.0.170.0140.00617.90
8.0.160.0230.00417.79
8.0.150.0180.00417.79
8.0.140.0200.00817.80
8.0.130.0150.01117.99
8.0.120.0160.00917.82
8.0.110.0190.00917.95
8.0.100.0230.01117.72
8.0.90.0200.00517.70
8.0.80.0280.00717.91
8.0.70.0230.00317.79
8.0.60.0220.00217.84
8.0.50.0210.00517.81
8.0.30.0250.00717.95
8.0.20.0250.00417.80
8.0.10.0170.00518.04

preferences:
27.13 ms | 403 KiB | 5 Q