3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/hello/','i says hello to you',$matches); print_r($matches); ?>

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.0.0beta10.0090.00916.71
8.0.0alpha30.0130.00716.68
8.0.0alpha20.0130.00916.62
8.0.0alpha10.0070.01116.59
7.4.90.0100.00716.62
7.4.80.0100.01016.56
7.4.70.0100.00716.43
7.4.60.0090.00916.59
7.4.50.0040.00416.54
7.4.40.0070.00722.77
7.4.30.0070.01416.59
7.4.00.0080.00814.98
7.3.210.0120.00616.53
7.3.200.0030.01419.39
7.3.190.0100.00716.49
7.3.180.0080.00916.64
7.3.170.0140.00616.40
7.3.160.0080.00816.68
7.3.120.0050.01314.72
7.3.110.0030.01415.02
7.3.100.0060.01214.70
7.3.90.0000.01414.75
7.3.80.0030.01014.70
7.3.70.0080.00414.55
7.3.60.0060.00614.85
7.3.50.0040.01114.86
7.3.40.0060.00614.84
7.3.30.0060.00314.95
7.3.20.0060.00916.69
7.3.10.0090.00616.71
7.3.00.0000.01816.38
7.2.330.0140.00316.57
7.2.320.0120.00916.45
7.2.310.0110.01116.69
7.2.300.0120.00416.71
7.2.290.0150.00616.59
7.2.250.0070.01314.77
7.2.240.0030.01315.04
7.2.230.0060.01214.96
7.2.220.0070.00715.08
7.2.210.0080.00315.00
7.2.200.0060.00314.70
7.2.190.0120.00315.17
7.2.180.0030.00614.67
7.2.170.0100.00314.87
7.2.120.0090.00616.67
7.2.110.0060.00916.34
7.2.100.0080.00416.57
7.2.90.0060.00616.30
7.2.80.0070.00416.50
7.2.70.0070.00717.02
7.2.60.0080.00816.98
7.2.50.0070.00716.94
7.2.40.0140.00017.05
7.2.30.0000.01516.93
7.2.20.0070.00716.48
7.2.10.0060.00316.87
7.2.00.0030.01016.91
7.1.330.0100.00315.94
7.1.320.0030.00715.74
7.1.310.0040.01115.67
7.1.300.0060.00916.11
7.1.290.0060.00615.95
7.1.280.0080.00015.77
7.1.270.0070.00715.90
7.1.260.0070.01015.78
7.1.240.0060.01015.96
7.1.230.0030.01015.55
7.1.220.0030.01016.01
7.1.210.0030.00915.85
7.1.200.0030.01015.95
7.1.190.0030.00916.02
7.1.180.0030.00615.90
7.1.170.0060.00615.96
7.1.160.0060.00915.86
7.1.150.0000.01515.93
7.1.140.0090.00316.00
7.1.130.0110.00415.55
7.1.120.0070.00715.75
7.1.110.0030.00815.86
7.1.100.0020.01116.94
7.1.90.0070.00715.75
7.1.80.0070.00715.74
7.1.70.0030.00916.66
7.1.60.0070.01217.61
7.1.50.0060.01516.42
7.1.40.0030.00915.83
7.1.30.0030.00316.01
7.1.20.0030.00715.64
7.1.10.0070.00715.96
7.1.00.0050.04219.20
7.0.320.0000.01515.39
7.0.310.0000.01215.55
7.0.300.0060.00315.66
7.0.290.0000.01115.36
7.0.280.0090.00315.70
7.0.270.0070.00715.48
7.0.260.0040.00815.38
7.0.250.0070.00715.45
7.0.240.0070.00715.49
7.0.230.0080.00415.74
7.0.220.0070.00715.26
7.0.210.0090.00615.75
7.0.200.0050.00716.13
7.0.190.0090.00615.46
7.0.180.0000.00915.28
7.0.170.0000.01115.46
7.0.160.0080.00415.74
7.0.150.0030.00715.38
7.0.140.0060.04118.85
7.0.130.0000.01315.57
7.0.120.0090.00315.66
7.0.110.0090.00015.47
7.0.100.0170.04017.82
7.0.90.0150.04617.53
7.0.80.0050.02517.77
7.0.70.0010.04617.85
7.0.60.0080.04417.73
7.0.50.0130.03717.99
7.0.40.0070.04216.71
7.0.30.0070.04516.85
7.0.20.0000.04616.75
7.0.10.0030.04616.85
7.0.00.0070.04216.91
5.6.380.0100.00314.38
5.6.370.0040.01114.07
5.6.360.0070.00714.00
5.6.350.0040.00714.12
5.6.340.0060.00914.10
5.6.330.0090.00614.30
5.6.320.0050.00314.14
5.6.310.0070.00414.01
5.6.300.0100.00314.50
5.6.290.0070.00714.13
5.6.280.0030.04217.53
5.6.270.0140.00013.97
5.6.260.0100.00314.25
5.6.250.0100.04217.41
5.6.240.0050.04017.52
5.6.230.0050.02517.21
5.6.220.0080.04017.35
5.6.210.0080.04317.49
5.6.200.0110.02917.71
5.6.190.0050.03817.60
5.6.180.0100.04517.65
5.6.170.0020.03717.60
5.6.160.0080.04017.49
5.6.150.0120.04017.63
5.6.140.0060.04717.76
5.6.130.0100.02417.72
5.6.120.0030.02817.48
5.6.110.0060.04317.54
5.6.100.0030.02317.65
5.6.90.0060.04417.62
5.6.80.0080.03317.14
5.6.70.0080.02217.16
5.6.60.0050.02317.32
5.6.50.0040.02217.13
5.6.40.0060.01817.28
5.6.30.0050.02017.33
5.6.20.0040.02217.29
5.6.10.0030.02217.24
5.6.00.0100.01817.06
5.5.380.0100.03515.76
5.5.370.0070.02115.69
5.5.360.0030.03315.76
5.5.350.0050.02315.64
5.5.340.0080.03715.85
5.5.330.0070.03715.68
5.5.320.0080.04415.98
5.5.310.0050.03015.87
5.5.300.0070.03815.96
5.5.290.0050.02215.88
5.5.280.0070.03916.03
5.5.270.0040.04016.00
5.5.260.0050.04115.90
5.5.250.0100.03215.72
5.5.240.0040.02315.64
5.5.230.0050.01915.55
5.5.220.0010.03115.60
5.5.210.0050.02415.43
5.5.200.0030.02015.60
5.5.190.0020.02015.58
5.5.180.0060.02315.50
5.5.170.0030.00613.86
5.5.160.0030.01815.64
5.5.150.0070.01815.57
5.5.140.0030.02115.68
5.5.130.0020.02315.63
5.5.120.0040.01815.68
5.5.110.0040.02015.41
5.5.100.0080.01815.54
5.5.90.0020.02115.47
5.5.80.0030.02115.61
5.5.70.0050.02015.43
5.5.60.0070.03515.60
5.5.50.0050.01715.53
5.5.40.0050.01715.51
5.5.30.0020.02315.54
5.5.20.0020.01815.37
5.5.10.0050.02015.46
5.5.00.0030.02015.53
5.4.450.0100.04115.30
5.4.440.0080.03715.25
5.4.430.0040.02315.01
5.4.420.0030.02315.23
5.4.410.0120.03715.14
5.4.400.0070.02015.03
5.4.390.0050.02215.12
5.4.380.0070.02114.91
5.4.370.0070.02014.93
5.4.360.0040.02515.00
5.4.350.0040.01714.88
5.4.340.0070.02015.04
5.4.330.0090.00510.73
5.4.320.0030.02314.75
5.4.310.0050.02215.00
5.4.300.0060.01614.96
5.4.290.0030.02315.02
5.4.280.0100.02014.94
5.4.270.0040.02115.01
5.4.260.0070.01515.03
5.4.250.0080.02114.95
5.4.240.0060.01814.99
5.4.230.0030.02115.07
5.4.220.0090.01814.87
5.4.210.0070.02115.17
5.4.200.0040.02114.99
5.4.190.0070.01814.92
5.4.180.0030.02014.88
5.4.170.0060.03214.90
5.4.160.0060.01814.78
5.4.150.0080.02014.95
5.4.140.0080.01513.52
5.4.130.0100.02313.60
5.4.120.0020.02113.75
5.4.110.0030.02013.56
5.4.100.0040.01813.66
5.4.90.0060.01713.72
5.4.80.0110.01313.70
5.4.70.0070.01813.69
5.4.60.0030.02313.61
5.4.50.0060.01813.66
5.4.40.0070.02013.70
5.4.30.0060.02813.74
5.4.20.0070.02313.59
5.4.10.0050.02113.75
5.4.00.0090.03513.31
5.3.290.0040.01812.89
5.3.280.0050.01813.04
5.3.270.0090.01612.86
5.3.260.0040.01812.89
5.3.250.0050.01813.02
5.3.240.0070.01512.94
5.3.230.0040.02012.96
5.3.220.0070.01813.01
5.3.210.0040.02212.94
5.3.200.0050.02212.96
5.3.190.0040.02012.86
5.3.180.0050.01913.01
5.3.170.0050.02512.96
5.3.160.0020.02213.10
5.3.150.0060.02113.05
5.3.140.0060.02212.92
5.3.130.0100.03213.07
5.3.120.0060.02313.02
5.3.110.0080.03813.07
5.3.100.0080.04312.98
5.3.90.0030.04012.83
5.3.80.0070.02512.91
5.3.70.0050.02012.83
5.3.60.0020.02212.94
5.3.50.0070.02012.89
5.3.40.0080.03012.91
5.3.30.0040.02012.94
5.3.20.0110.03612.96
5.3.10.0030.03212.92
5.3.00.0070.03212.85
5.2.170.0000.03612.69
5.2.160.0030.01812.69
5.2.150.0070.01712.69
5.2.140.0050.02312.69
5.2.130.0080.01412.69
5.2.120.0040.03112.69
5.2.110.0070.02512.69
5.2.100.0070.02712.69
5.2.90.0040.02212.69
5.2.80.0020.03812.69
5.2.70.0030.02812.69
5.2.60.0040.03012.69
5.2.50.0060.01912.69
5.2.40.0030.03012.69
5.2.30.0040.01712.69
5.2.20.0030.02512.69
5.2.10.0070.03212.69
5.2.00.0040.03112.69
5.1.60.0050.02812.69
5.1.50.0080.02512.69
5.1.40.0050.02812.69
5.1.30.0060.02812.69
5.1.20.0070.02812.69
5.1.10.0070.02212.69
5.1.00.0050.02812.69
5.0.50.0060.02112.69
5.0.40.0020.01212.69
5.0.30.0020.03312.69
5.0.20.0080.01812.69
5.0.10.0050.02112.69
5.0.00.0050.03312.69
4.4.90.0020.01712.69
4.4.80.0010.01012.69
4.4.70.0050.01512.69
4.4.60.0020.01712.69
4.4.50.0060.01712.69
4.4.40.0040.01812.69
4.4.30.0030.01812.69
4.4.20.0050.01812.69
4.4.10.0020.01912.69
4.4.00.0010.02612.69
4.3.110.0020.01912.69
4.3.100.0040.01912.69
4.3.90.0040.01712.69
4.3.80.0040.02412.69
4.3.70.0060.01312.69
4.3.60.0020.02012.69
4.3.50.0000.01912.69
4.3.40.0030.02712.69
4.3.30.0010.02012.69
4.3.20.0030.01812.69
4.3.10.0020.01412.69
4.3.00.0000.01412.69