3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = preg_match('/\w+/', '1'); var_dump($test); if ($test) { echo '1'; } else { echo '0'; }

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.20.0040.00417.90
8.4.10.0040.00417.99
8.3.150.0160.00317.23
8.3.140.0140.00416.66
8.3.130.0070.00416.55
8.3.120.0030.00620.70
8.3.110.0000.00816.64
8.3.100.0150.00624.06
8.3.90.0030.00526.77
8.3.80.0060.00317.97
8.3.70.0110.00416.50
8.3.60.0150.00318.43
8.3.50.0140.00522.92
8.3.40.0080.00819.14
8.3.30.0030.01019.10
8.3.20.0090.00020.21
8.3.10.0000.00821.81
8.3.00.0000.00817.80
8.2.270.0080.01118.92
8.2.260.0100.00316.71
8.2.250.0040.00416.72
8.2.240.0050.00217.45
8.2.230.0000.01020.94
8.2.220.0040.00437.54
8.2.210.0080.00826.77
8.2.200.0040.00818.68
8.2.190.0120.00618.39
8.2.180.0110.00718.54
8.2.170.0110.00422.96
8.2.160.0110.00420.43
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00620.70
8.2.110.0000.01019.05
8.2.100.0040.00818.03
8.2.90.0000.00817.97
8.2.80.0000.00920.35
8.2.70.0050.00317.88
8.2.60.0040.00417.63
8.2.50.0090.00018.07
8.2.40.0050.00319.89
8.2.30.0040.00419.74
8.2.20.0040.00417.79
8.2.10.0000.00718.07
8.2.00.0030.00617.68
8.1.310.0080.00016.68
8.1.300.0090.00916.40
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.01021.95
8.1.230.0080.00420.85
8.1.220.0040.00417.74
8.1.210.0080.00018.89
8.1.200.0050.00317.48
8.1.190.0040.00417.22
8.1.180.0040.00819.14
8.1.170.0040.00418.59
8.1.160.0030.00621.98
8.1.150.0000.00718.90
8.1.140.0000.00817.49
8.1.130.0030.00317.75
8.1.120.0040.00417.55
8.1.110.0050.00317.51
8.1.100.0050.00217.48
8.1.90.0050.00317.48
8.1.80.0070.00017.60
8.1.70.0040.00417.46
8.1.60.0040.00417.69
8.1.50.0040.00417.51
8.1.40.0030.00617.47
8.1.30.0040.00417.72
8.1.20.0000.00717.58
8.1.10.0040.00417.68
8.1.00.0040.00417.55
8.0.300.0040.00420.02
8.0.290.0040.00416.88
8.0.280.0000.00718.32
8.0.270.0000.00717.27
8.0.260.0000.00717.20
8.0.250.0070.00016.97
8.0.240.0000.00717.05
8.0.230.0000.00817.05
8.0.220.0030.00316.84
8.0.210.0000.00717.01
8.0.200.0030.00316.98
8.0.190.0000.01016.91
8.0.180.0000.00717.04
8.0.170.0070.00016.97
8.0.160.0000.00716.94
8.0.150.0030.00316.83
8.0.140.0000.00716.83
8.0.130.0030.00313.40
8.0.120.0030.00616.81
8.0.110.0030.00517.00
8.0.100.0000.00717.00
8.0.90.0000.00816.91
8.0.80.0150.00616.86
8.0.70.0000.00716.80
8.0.60.0070.00016.87
8.0.50.0000.00816.76
8.0.30.0140.00617.22
8.0.20.0130.00717.40
8.0.10.0000.00716.97
8.0.00.0020.01516.98
7.4.330.0030.00315.03
7.4.320.0000.00616.59
7.4.300.0000.00616.72
7.4.290.0000.00716.65
7.4.280.0000.00716.74
7.4.270.0000.00816.66
7.4.260.0030.00316.68
7.4.250.0080.00016.69
7.4.240.0030.00416.69
7.4.230.0030.00316.57
7.4.220.0140.00316.75
7.4.210.0100.00616.66
7.4.200.0020.00516.64
7.4.160.0080.00816.77
7.4.150.0030.01417.40
7.4.140.0030.01717.86
7.4.130.0070.01016.59
7.4.120.0100.00716.62
7.4.110.0130.00616.61
7.4.100.0100.01016.51
7.4.90.0150.00316.57
7.4.80.0120.00619.39
7.4.70.0110.01116.60
7.4.60.0110.00716.49
7.4.50.0030.00616.38
7.4.40.0110.01116.63
7.4.30.0040.01316.63
7.4.00.0040.01415.32
7.3.330.0030.00313.20
7.3.320.0040.00413.12
7.3.310.0070.00016.08
7.3.300.0030.00316.27
7.3.290.0060.00916.28
7.3.280.0130.00516.29
7.3.270.0090.00917.40
7.3.260.0130.00316.33
7.3.250.0160.00416.58
7.3.240.0070.01016.35
7.3.230.0070.01016.39
7.3.210.0120.00916.70
7.3.200.0160.00619.39
7.3.190.0080.00816.44
7.3.180.0060.01116.35
7.3.170.0120.00416.71
7.3.160.0110.00616.47
7.3.10.0070.01016.67
7.3.00.0060.00616.65
7.2.330.0090.00816.73
7.2.320.0100.00616.68
7.2.310.0100.00716.83
7.2.300.0100.00716.64
7.2.290.0110.00616.67
7.2.130.0040.01117.00
7.2.120.0060.01017.02
7.2.110.0030.00917.03
7.2.100.0060.00917.00
7.2.90.0070.00717.27
7.2.80.0050.00517.21
7.2.70.0080.00417.15
7.2.60.0050.01016.75
7.2.50.0000.01017.16
7.2.40.0090.00617.19
7.2.30.0030.01017.13
7.2.20.0030.00717.02
7.2.10.0100.00316.99
7.2.00.0050.00818.29
7.1.250.0060.00315.81
7.1.200.0070.00715.71
7.1.100.0060.00618.14
7.1.70.0040.00417.33
7.1.60.0110.01119.57
7.1.50.0060.01617.25
7.1.00.0030.07722.55
7.0.200.0040.00417.05
7.0.140.0070.07321.95
7.0.60.0100.04019.82
7.0.50.0030.07717.83
7.0.40.0100.03720.02
7.0.30.0230.04320.32
7.0.20.0170.07320.02
7.0.10.0000.04720.01
7.0.00.0070.03720.17
5.6.280.0070.07020.82
5.6.210.0000.04320.75
5.6.200.0030.07318.18
5.6.190.0170.03320.75
5.6.180.0370.07020.60
5.6.170.0230.05320.62
5.6.160.0230.04320.50
5.6.150.0070.06318.11
5.6.140.0070.10018.14
5.6.130.0070.05718.10
5.6.120.0230.07020.96
5.6.110.0000.08720.94
5.6.100.0030.08020.98
5.6.90.0070.08020.84
5.6.80.0100.07720.48
5.5.350.0200.07020.40
5.5.340.0130.07317.95
5.5.330.0030.04020.38
5.5.320.0270.04320.32
5.5.310.0300.07720.20
5.5.300.0030.03718.00
5.5.290.0100.08717.91
5.5.280.0000.04320.98
5.5.270.0070.05720.71
5.5.260.0170.07320.86
5.5.250.0030.08720.58
5.5.240.0000.06320.15
5.4.450.0870.05719.32
5.4.440.0900.05319.44
5.4.430.0100.05019.49
5.4.420.0100.05319.51
5.4.410.0100.06018.72
5.4.400.0200.05318.81
5.4.390.0100.06718.46
5.4.380.0130.05018.70
5.4.370.0030.04718.56
5.4.360.0070.03718.64
5.4.350.0030.04318.57
5.4.340.0100.03318.66
5.4.320.0070.04718.47
5.4.310.0000.04718.45
5.4.300.0070.04018.67
5.4.290.0100.03718.67
5.4.280.0170.04318.68
5.4.270.0100.04318.71
5.4.260.0030.05018.68
5.4.250.0030.05018.49
5.4.240.0130.04018.65
5.4.230.0100.03718.48
5.4.220.0000.04718.57
5.4.210.0070.04018.66
5.4.200.0100.03716.63
5.4.190.0200.04018.54
5.4.180.0130.04318.54
5.4.170.0170.04318.55
5.4.160.0130.04718.50
5.4.150.0030.04718.63
5.4.140.0100.04716.09
5.4.130.0030.06016.17
5.4.120.0070.04316.13
5.4.110.0030.04016.30
5.4.100.0070.03716.22
5.4.90.0170.03316.35
5.4.80.0070.03716.34
5.4.70.0130.04016.19
5.4.60.0070.05016.16
5.4.50.0130.04316.23
5.4.40.0070.04316.21
5.4.30.0030.04016.11
5.4.20.0130.03316.02
5.4.10.0130.03316.10
5.4.00.0070.03315.52
5.3.290.0070.04314.69
5.3.280.0030.04314.44
5.3.270.0030.04714.46
5.3.260.0170.05014.63
5.3.250.0030.05014.50
5.3.240.0030.05714.50
5.3.230.0070.04314.49
5.3.220.0170.02714.47
5.3.210.0070.03714.43
5.3.200.0000.04014.60
5.3.190.0000.04314.46
5.3.180.0030.04714.47
5.3.170.0200.04014.44
5.3.160.0030.05714.42
5.3.150.0070.04714.47
5.3.140.0030.05014.40
5.3.130.0070.03714.39
5.3.120.0070.04014.55
5.3.110.0130.03714.56
5.3.100.0100.03713.95
5.3.90.0070.03714.06
5.3.80.0130.03313.94
5.3.70.0130.03014.00
5.3.60.0070.03713.85
5.3.50.0030.04013.94
5.3.40.0070.04313.84
5.3.30.0030.05013.84
5.3.20.0130.04713.71
5.3.10.0100.05013.52
5.3.00.0170.04313.57
5.2.170.0130.03311.15
5.2.160.0130.03011.14
5.2.150.0130.03010.99
5.2.140.0070.04311.01
5.2.130.0070.03311.07
5.2.120.0070.03311.10
5.2.110.0100.03011.06
5.2.100.0030.03311.07
5.2.90.0030.04010.98
5.2.80.0000.04011.00
5.2.70.0070.03311.18
5.2.60.0100.03310.90
5.2.50.0070.03010.86
5.2.40.0070.03310.93
5.2.30.0070.03011.08
5.2.20.0100.02310.84
5.2.10.0030.03010.83
5.2.00.0070.03310.62
5.1.60.0070.0279.94
5.1.50.0030.0279.91
5.1.40.0030.0279.88
5.1.30.0100.02310.23
5.1.20.0130.02010.31
5.1.10.0070.02310.02
5.1.00.0030.02710.08
5.0.50.0000.0238.55
5.0.40.0070.0178.36
5.0.30.0030.0338.14
5.0.20.0000.0278.23
5.0.10.0000.0238.30
5.0.00.0000.0338.21
4.4.90.0000.0205.93
4.4.80.0000.0235.85
4.4.70.0000.0235.86
4.4.60.0000.0235.81
4.4.50.0030.0205.89
4.4.40.0070.0305.82
4.4.30.0000.0205.84
4.4.20.0030.0205.87
4.4.10.0000.0205.87
4.4.00.0030.0275.87
4.3.110.0030.0175.80
4.3.100.0070.0135.78
4.3.90.0000.0175.89
4.3.80.0030.0235.75
4.3.70.0030.0135.75
4.3.60.0030.0135.73
4.3.50.0070.0105.73
4.3.40.0000.0275.71
4.3.30.0000.0174.54
4.3.20.0030.0174.48
4.3.10.0000.0234.43
4.3.00.0130.0307.00

preferences:
28.89 ms | 403 KiB | 5 Q