3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match( '/<span>(*)</span>', '<span>0</span>', $matches); echo $matches[1]; // 1234

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.0150.00018.49
8.3.30.0120.00419.23
8.3.20.0070.00020.20
8.3.10.0000.00823.65
8.3.00.0040.00422.34
8.2.170.0070.00722.96
8.2.160.0060.00922.16
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00019.35
8.2.110.0070.00322.00
8.2.100.0040.00817.91
8.2.90.0060.00319.08
8.2.80.0030.00617.97
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00418.28
8.2.30.0000.00717.97
8.2.20.0050.00217.59
8.2.10.0040.00417.66
8.2.00.0040.00417.49
8.1.270.0050.00322.25
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.63
8.1.230.0050.00519.16
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0070.00017.30
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0000.00821.95
8.1.150.0070.00018.49
8.1.140.0040.00417.20
8.1.130.0030.00317.82
8.1.120.0080.00017.38
8.1.110.0000.00817.31
8.1.100.0070.00017.37
8.1.90.0040.00417.21
8.1.80.0000.00717.20
8.1.70.0000.00617.30
8.1.60.0080.00017.42
8.1.50.0050.00317.40
8.1.40.0050.00217.27
8.1.30.0080.00017.45
8.1.20.0040.00417.49
8.1.10.0050.00217.50
8.1.00.0080.00017.52
8.0.300.0000.00818.77
8.0.290.0040.00417.05
8.0.280.0000.00718.30
8.0.270.0030.00317.11
8.0.260.0000.00816.86
8.0.250.0000.00616.91
8.0.240.0040.00416.93
8.0.230.0070.00016.81
8.0.220.0030.00316.72
8.0.210.0080.00016.73
8.0.200.0030.00316.80
8.0.190.0040.00416.79
8.0.180.0060.00716.89
8.0.170.0000.00816.78
8.0.160.0000.00916.91
8.0.150.0030.00316.68
8.0.140.0040.00416.68
8.0.130.0000.00713.21
8.0.120.0080.00016.74
8.0.110.0050.00216.74
8.0.100.0030.00316.64
8.0.90.0000.00716.74
8.0.80.0090.00616.83
8.0.70.0040.00416.72
8.0.60.0030.00516.68
8.0.50.0050.00316.80
8.0.30.0080.01417.10
8.0.20.0130.00517.40
8.0.10.0030.00516.84
8.0.00.0100.01016.75
7.4.330.0000.00515.00
7.4.320.0030.00316.46
7.4.300.0030.00316.41
7.4.290.0000.00716.48
7.4.280.0030.00316.36
7.4.270.0000.00716.47
7.4.260.0000.00616.35
7.4.250.0000.00816.36
7.4.240.0040.00416.43
7.4.230.0000.00716.37
7.4.220.0100.00716.43
7.4.210.0050.00916.47
7.4.200.0030.00316.55
7.4.190.0070.00016.56
7.4.160.0090.00916.42
7.4.150.0070.01017.40
7.4.140.0120.00617.86
7.4.130.0120.00716.58
7.4.120.0090.00916.49
7.4.110.0150.00316.59
7.4.100.0120.01316.60
7.4.90.0090.00816.64
7.4.80.0090.01016.52
7.4.70.0110.00416.38
7.4.60.0100.00616.24
7.4.50.0040.00416.49
7.4.40.0110.00422.77
7.4.30.0060.01116.36
7.4.00.0070.00715.19
7.3.330.0050.00013.01
7.3.320.0030.00313.19
7.3.310.0030.00316.41
7.3.300.0000.00716.13
7.3.290.0030.01216.27
7.3.280.0040.01116.36
7.3.270.0130.00317.40
7.3.260.0100.01016.46
7.3.250.0100.01116.36
7.3.240.0160.00616.40
7.3.230.0060.01016.50
7.3.210.0180.00016.46
7.3.200.0120.00619.39
7.3.190.0090.00916.26
7.3.180.0110.00416.46
7.3.170.0150.00616.53
7.3.160.0040.01116.31
7.3.120.0030.01315.00
7.3.10.0040.01116.46
7.3.00.0070.00716.41
7.2.330.0140.00716.63
7.2.320.0070.01016.23
7.2.310.0090.00916.73
7.2.300.0120.00416.66
7.2.290.0190.00316.43
7.2.130.0060.00616.84
7.2.120.0090.00316.71
7.2.110.0090.00316.48
7.2.100.0030.00616.86
7.2.90.0040.00816.64
7.2.80.0040.01116.91
7.2.70.0030.00617.02
7.2.60.0000.01216.90
7.2.50.0110.00016.61
7.2.40.0060.00617.01
7.2.30.0040.00816.52
7.2.20.0030.01016.74
7.2.10.0030.00916.80
7.2.00.0060.00617.03
7.1.250.0070.00715.70
7.1.100.0030.00918.03
7.1.70.0000.00717.07
7.1.60.0130.01019.24
7.1.50.0000.01016.84
7.1.00.0030.07722.33
7.0.200.0060.00616.55
7.0.140.0030.07321.96
7.0.60.0030.04019.84
7.0.50.0000.04317.91
7.0.40.0200.06020.03
7.0.30.0230.04020.20
7.0.20.0270.07320.14
7.0.10.0100.08020.21
7.0.00.0030.04720.19
5.6.280.0170.06021.11
5.6.210.0130.03020.75
5.6.200.0000.06018.12
5.6.190.0130.08320.49
5.6.180.0100.07020.44
5.6.170.0270.07720.40
5.6.160.0030.09320.38
5.6.150.0100.07318.21
5.6.140.0170.07018.20
5.6.130.0030.05318.14
5.6.120.0100.04320.89
5.6.110.0070.06720.97
5.6.100.0100.07721.12
5.6.90.0170.07721.10
5.6.80.0070.04020.39
5.5.350.0070.08020.43
5.5.340.0100.07317.99
5.5.330.0000.04320.07
5.5.320.0300.08320.14
5.5.310.0330.07020.20
5.5.300.0000.05017.91
5.5.290.0070.08717.91
5.5.280.0070.08320.87
5.5.270.0130.07320.86
5.5.260.0130.07720.79
5.5.250.0070.08320.74
5.5.240.0030.08020.14
5.4.450.0630.04719.11
5.4.440.0470.04019.39
5.4.430.0870.03719.14
5.4.420.0670.03719.56
5.4.410.0030.06318.87
5.4.400.0070.05718.75
5.4.390.0130.07318.68
5.4.380.0130.05318.61
5.4.370.0030.06018.77
5.4.360.0070.05718.54
5.4.350.0100.05718.72
5.4.340.0130.05018.61
5.4.320.0110.04112.45
5.4.310.0070.03912.45
5.4.300.0050.03812.45
5.4.290.0050.04512.45
5.4.280.0060.03712.34
5.4.270.0080.03812.35
5.4.260.0070.03812.35
5.4.250.0100.03912.35
5.4.240.0070.04512.35
5.4.230.0040.03912.34
5.4.220.0050.03712.34
5.4.210.0060.04212.34
5.4.200.0070.04112.34
5.4.190.0130.04512.31
5.4.180.0170.04212.31
5.4.170.0130.04812.32
5.4.160.0210.04112.32
5.4.150.0160.04512.32
5.4.140.0150.04212.00
5.4.130.0160.04211.98
5.4.120.0160.04011.95
5.4.110.0310.06011.94
5.4.100.0190.04211.94
5.4.90.0100.05011.94
5.4.80.0130.04611.94
5.4.70.0150.04311.94
5.4.60.0170.04111.94
5.4.50.0160.04311.94
5.4.40.0150.04711.92
5.4.30.0520.09811.93
5.4.20.0170.04211.92
5.4.10.0170.04311.93
5.4.00.0270.06311.41
5.3.290.0070.04112.80
5.3.280.0050.03812.71
5.3.270.0190.04412.73
5.3.260.0170.04312.72
5.3.250.0140.04612.72
5.3.240.0220.04712.72
5.3.230.0210.04112.71
5.3.220.0350.08512.68
5.3.210.0160.04412.68
5.3.200.0170.04212.68
5.3.190.0180.04312.68
5.3.180.0210.03912.68
5.3.170.0170.04312.67
5.3.160.0210.06812.67
5.3.150.0170.04212.68
5.3.140.0150.04612.66
5.3.130.0120.04712.66
5.3.120.0160.04512.66
5.3.110.0300.06012.66
5.3.100.0150.04412.12
5.3.90.0130.04612.08
5.3.80.0150.04512.08
5.3.70.0140.04612.07
5.3.60.0250.06712.07
5.3.50.0160.04512.00
5.3.40.0140.04812.00
5.3.30.0230.06811.94
5.3.20.0200.04011.70
5.3.10.0220.03811.67
5.3.00.0150.04311.65
5.2.170.0330.0759.15
5.2.160.0100.0389.16
5.2.150.0120.0359.16
5.2.140.0140.0349.15
5.2.130.0110.0369.11
5.2.120.0110.0409.12
5.2.110.0290.0829.13
5.2.100.0100.0369.12
5.2.90.0110.0379.12
5.2.80.0120.0359.11
5.2.70.0120.0359.11
5.2.60.0140.0349.06
5.2.50.0170.0309.03
5.2.40.0120.0359.01
5.2.30.0100.0398.98
5.2.20.0270.0818.98
5.2.10.0090.0378.89
5.2.00.0090.0368.75
5.1.60.0110.0298.04
5.1.50.0140.0278.04
5.1.40.0090.0318.02
5.1.30.0090.0368.36
5.1.20.0110.0328.40
5.1.10.0090.0338.12
5.1.00.0170.0258.11
5.0.50.0120.0226.60
5.0.40.0100.0216.45
5.0.30.0110.0336.27
5.0.20.0100.0216.24
5.0.10.0100.0216.22
5.0.00.0060.0376.21
4.4.90.0080.0184.78
4.4.80.0050.0204.75
4.4.70.0040.0214.76
4.4.60.0060.0194.76
4.4.50.0080.0164.77
4.4.40.0170.0494.71
4.4.30.0050.0204.75
4.4.20.0070.0184.84
4.4.10.0060.0194.85
4.4.00.0060.0294.75
4.3.110.0080.0174.67
4.3.100.0100.0154.67
4.3.90.0060.0184.64
4.3.80.0060.0314.59
4.3.70.0060.0184.63
4.3.60.0070.0174.63
4.3.50.0060.0184.62
4.3.40.0100.0544.54
4.3.30.0050.0183.27
4.3.20.0040.0193.26
4.3.10.0050.0203.23
4.3.00.0030.01013.36

preferences:
44.11 ms | 400 KiB | 5 Q