3v4l.org

run code in 300+ PHP versions simultaneously
<?php $replace = "I'm here"; $str = "xy matches xy"; echo preg_replace_callback("/matches/", create_function('$matches', 'return "'.$replace.'";'), $str);

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.0040.01118.76
8.3.30.0070.00718.49
8.3.20.0040.00420.03
8.3.10.0080.00023.52
8.3.00.0080.00019.66
8.2.170.0040.01122.96
8.2.160.0100.00320.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00819.14
8.2.120.0040.00426.35
8.2.110.0070.00319.31
8.2.100.0090.00317.89
8.2.90.0040.00419.00
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0000.00822.18
8.2.30.0030.00520.61
8.2.20.0070.00017.62
8.2.10.0050.00317.96
8.2.00.0050.00317.96
8.1.270.0030.00620.04
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00322.00
8.1.230.0090.00320.89
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0100.00017.23
8.1.190.0030.00617.21
8.1.180.0000.00718.10
8.1.170.0040.00418.64
8.1.160.0040.00420.73
8.1.150.0000.00818.72
8.1.140.0040.00419.52
8.1.130.0040.00417.54
8.1.120.0040.00417.43
8.1.110.0070.00017.39
8.1.100.0030.00617.29
8.1.90.0000.00817.35
8.1.80.0050.00317.41
8.1.70.0000.00717.35
8.1.60.0060.00317.46
8.1.50.0060.00317.34
8.1.40.0070.00017.39
8.1.30.0040.00417.66
8.1.20.0040.00417.68
8.1.10.0070.00017.46
8.1.00.0050.00217.46
8.0.300.0060.00319.77
8.0.290.0050.00216.75
8.0.280.0030.00318.36
8.0.270.0070.00017.19
8.0.260.0030.00317.18
8.0.250.0000.00716.88
8.0.240.0030.00316.83
8.0.230.0000.00716.84
8.0.220.0000.00716.93
8.0.210.0080.00016.93
8.0.200.0030.00716.94
8.0.190.0040.00816.84
8.0.180.0050.00216.88
8.0.170.0000.00716.79
8.0.160.0000.00716.95
8.0.150.0000.00816.86
8.0.140.0040.00416.82
8.0.130.0090.00013.30
8.0.120.0000.00716.82
8.0.110.0040.00416.77
8.0.100.0040.00416.99
8.0.90.0000.00816.70
8.0.80.0070.01716.94
8.0.70.0000.00816.70
8.0.60.0080.00016.78
8.0.50.0030.00316.67
8.0.30.0050.01117.19
8.0.20.0070.01217.40
8.0.10.0070.00017.06
8.0.00.0070.00916.62
7.4.330.0050.00016.88
7.4.320.0030.00316.64
7.4.300.0030.00716.64
7.4.290.0070.00016.63
7.4.280.0040.00416.76
7.4.270.0030.00316.72
7.4.260.0000.00716.73
7.4.250.0040.00416.63
7.4.240.0050.00216.71
7.4.230.0030.00316.82
7.4.220.0060.00916.71
7.4.210.0040.01116.75
7.4.200.0000.00716.72
7.4.160.0090.00616.40
7.4.150.0100.00717.40
7.4.140.0130.00917.86
7.4.130.0080.00816.66
7.4.120.0120.00516.68
7.4.110.0120.00616.61
7.4.100.0090.00916.64
7.4.90.0060.01316.67
7.4.80.0090.00919.39
7.4.70.0060.01616.61
7.4.60.0060.01216.66
7.4.50.0090.00616.68
7.4.40.0100.01616.82
7.4.30.0150.00316.75
7.4.00.0070.00715.04
7.3.330.0000.00513.53
7.3.320.0020.00313.37
7.3.310.0040.00416.41
7.3.300.0030.00516.39
7.3.290.0030.00316.39
7.3.280.0100.00416.54
7.3.270.0180.00617.40
7.3.260.0100.00716.82
7.3.250.0130.00816.70
7.3.240.0090.01116.51
7.3.230.0070.01016.57
7.3.210.0120.00616.88
7.3.200.0090.00616.33
7.3.190.0120.00616.57
7.3.180.0120.00616.42
7.3.170.0150.00316.73
7.3.160.0090.00816.45
7.2.330.0060.01216.78
7.2.320.0070.01416.54
7.2.310.0180.00016.75
7.2.300.0110.00516.71
7.2.290.0100.01016.88
7.2.60.0130.00016.88
7.2.00.0030.00919.68
7.1.200.0000.01215.91
7.1.100.0240.00318.46
7.1.70.0110.00417.23
7.1.60.0140.01119.52
7.1.50.0250.01134.81
7.1.00.0070.07022.34
7.0.200.0070.00316.85
7.0.60.0230.05320.01
7.0.50.0070.07017.97
7.0.40.0100.06720.25
7.0.30.0230.04320.32
7.0.20.0370.06720.08
7.0.10.0100.08320.07
7.0.00.0000.05020.31
5.6.280.0000.03320.89
5.6.210.0000.08720.70
5.6.200.0070.08718.19
5.6.190.0070.06320.66
5.6.180.0330.06320.67
5.6.170.0400.06320.62
5.6.160.0230.06720.46
5.6.150.0000.08018.18
5.6.140.0070.08018.18
5.6.130.0000.04318.26
5.6.120.0130.06320.94
5.6.110.0200.07720.95
5.6.100.0100.08020.98
5.6.90.0130.07721.02
5.6.80.0030.08720.52
5.5.350.0170.07720.40
5.5.340.0130.07317.98
5.5.330.0130.07720.26
5.5.320.0300.06720.27
5.5.310.0170.08020.30
5.5.300.0100.05318.03
5.5.290.0130.04718.03
5.5.280.0100.07720.97
5.5.270.0070.08720.63
5.5.260.0070.08020.95
5.5.250.0130.07320.69
5.5.240.0230.07320.28

preferences:
52.65 ms | 400 KiB | 5 Q