3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'ua' => array( 'family', 'major' ), 'os' => array( 'family', 'major' ) ); $result = new StdClass(); $result->ua->family = "Safari"; $result->ua->major = "6"; $result->ua->minor = "0"; $result->ua->patch = "2"; $result->os->family = "Mac OS X"; $result->os->major = "10"; $result->os->minor = "7"; $result->os->patch = "5"; $result->os->patchMinor = "[null]"; array_intersect_key( (array) $result, $data );

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.60.0140.00418.68
8.3.50.0100.00521.27
8.3.40.0070.00718.82
8.3.30.0040.01119.04
8.3.20.0040.00420.11
8.3.10.0040.00422.09
8.3.00.0040.01222.50
8.2.180.0090.00516.88
8.2.170.0060.00822.96
8.2.160.0100.00319.22
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0000.00919.38
8.2.100.0060.00617.78
8.2.90.0090.00019.07
8.2.80.0000.00817.97
8.2.70.0070.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0040.00418.03
8.2.30.0040.00418.08
8.2.20.0080.00017.73
8.2.10.0000.00717.74
8.2.00.0030.00617.69
8.1.280.0110.00725.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.01622.02
8.1.230.0040.00718.87
8.1.220.0090.00017.79
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.23
8.1.180.0040.00418.70
8.1.170.0040.00418.57
8.1.160.0000.00722.21
8.1.150.0030.00618.63
8.1.140.0000.00717.35
8.1.130.0030.00317.78
8.1.120.0030.00317.43
8.1.110.0040.00417.30
8.1.100.0000.00717.43
8.1.90.0040.00417.48
8.1.80.0070.00017.31
8.1.70.0000.00717.39
8.1.60.0060.00317.39
8.1.50.0040.00417.44
8.1.40.0000.00817.54
8.1.30.0040.00417.55
8.1.20.0000.00817.66
8.1.10.0000.00817.61
8.1.00.0000.00817.48
8.0.300.0040.00420.16
8.0.290.0090.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00717.08
8.0.260.0000.00716.76
8.0.250.0000.00716.95
8.0.240.0000.00717.01
8.0.230.0000.00716.87
8.0.220.0030.00316.80
8.0.210.0000.00816.93
8.0.200.0000.00816.97
8.0.190.0070.00316.97
8.0.180.0000.00716.93
8.0.170.0050.00516.82
8.0.160.0080.00016.96
8.0.150.0000.00716.86
8.0.140.0040.00416.89
8.0.130.0000.00513.39
8.0.120.0030.00616.82
8.0.110.0040.00416.83
8.0.100.0050.00216.95
8.0.90.0000.00716.95
8.0.80.0200.00016.83
8.0.70.0050.00216.71
8.0.60.0040.00417.02
8.0.50.0020.00516.98
8.0.30.0110.00817.32
8.0.20.0080.01017.40
8.0.10.0040.00417.10
8.0.00.0090.01216.94
7.4.330.0050.00015.00
7.4.320.0060.00016.59
7.4.300.0000.00616.66
7.4.290.0000.00716.45
7.4.280.0000.00716.61
7.4.270.0000.00716.62
7.4.260.0000.00716.65
7.4.250.0040.00416.59
7.4.240.0020.00516.59
7.4.230.0000.00716.44
7.4.220.0120.00616.61
7.4.210.0070.00716.56
7.4.200.0000.00716.62
7.4.190.0070.00016.72
7.4.160.0100.00616.44
7.4.150.0100.00717.40
7.4.140.0080.01217.86
7.4.130.0150.00516.54
7.4.120.0110.00916.58
7.4.110.0090.00916.67
7.4.100.0070.01116.48
7.4.90.0140.00416.47
7.4.80.0090.01219.39
7.4.70.0130.00616.54
7.4.60.0070.01016.37
7.4.50.0000.00616.50
7.4.40.0060.00922.77
7.4.30.0120.00916.73
7.4.00.0070.00714.91
7.3.330.0030.00513.23
7.3.320.0000.00513.19
7.3.310.0050.00316.55
7.3.300.0060.00016.35
7.3.290.0060.01216.37
7.3.280.0090.00816.34
7.3.270.0090.00617.40
7.3.260.0120.00616.22
7.3.250.0110.00716.43
7.3.240.0140.01116.53
7.3.230.0070.01016.39
7.3.210.0060.01116.55
7.3.200.0080.00819.39
7.3.190.0110.00716.45
7.3.180.0130.00316.25
7.3.170.0090.00616.35
7.3.160.0070.01016.50
7.3.120.0030.01214.73
7.3.10.0030.00916.35
7.3.00.0060.00916.70
7.2.330.0170.01416.58
7.2.320.0120.00316.48
7.2.310.0140.00316.68
7.2.300.0160.00016.69
7.2.290.0090.00616.72
7.2.130.0090.00617.02
7.2.120.0030.01016.74
7.2.110.0060.00917.00
7.2.100.0060.00916.95
7.2.90.0030.01316.80
7.2.80.0000.01616.63
7.2.70.0060.00617.02
7.2.60.0030.01016.75
7.2.50.0030.01016.93
7.2.40.0090.00616.71
7.2.30.0070.00717.01
7.2.20.0040.01216.88
7.2.10.0090.00616.89
7.2.00.0050.01018.13
7.1.250.0070.00315.43
7.1.240.0030.01015.78
7.1.230.0000.00915.85
7.1.220.0000.01315.76
7.1.210.0040.00815.60
7.1.200.0050.00915.58
7.1.190.0030.01015.80
7.1.180.0110.00315.71
7.1.170.0030.01315.72
7.1.160.0030.01015.86
7.1.150.0000.01715.80
7.1.140.0060.00615.77
7.1.130.0100.00615.74
7.1.120.0090.00015.61
7.1.110.0040.01115.80
7.1.100.0070.00617.15
7.1.90.0060.00615.73
7.1.80.0030.01315.88
7.1.70.0100.00116.25
7.1.60.0110.00617.76
7.1.50.0070.01116.36
7.1.40.0110.00715.65
7.1.30.0140.01115.62
7.1.20.0110.00415.75
7.1.10.0030.01015.60
7.1.00.0050.02219.08
7.0.330.0060.00615.47
7.0.320.0070.00715.25
7.0.310.0040.00415.41
7.0.300.0110.00315.35
7.0.290.0000.01015.45
7.0.280.0040.00815.04
7.0.270.0040.00915.30
7.0.260.0030.01015.25
7.0.250.0040.00415.27
7.0.240.0030.00615.47
7.0.230.0030.00915.13
7.0.220.0000.00915.57
7.0.210.0110.00415.22
7.0.200.0020.00916.12
7.0.190.0100.00015.32
7.0.180.0060.00915.27
7.0.170.0040.01115.52
7.0.160.0120.00315.54
7.0.150.0050.00515.29
7.0.140.0080.03718.82
7.0.130.0060.00915.34
7.0.120.0000.01615.33
7.0.110.0000.01315.14
7.0.100.0090.00315.28
7.0.90.0060.00615.56
7.0.80.0060.00615.43
7.0.70.0030.01315.46
7.0.60.0070.04317.52
7.0.50.0070.03916.69
7.0.40.0080.04516.78
7.0.30.0200.03816.71
7.0.20.0160.03516.77
7.0.10.0050.04716.74
7.0.00.0050.02816.93
5.6.380.0070.00714.30
5.6.370.0030.01414.46
5.6.360.0000.01514.41
5.6.350.0030.01014.52
5.6.340.0120.00413.99
5.6.330.0080.00814.30
5.6.320.0030.01014.63
5.6.310.0070.01013.98
5.6.300.0040.01114.16
5.6.290.0040.00414.12
5.6.280.0050.04217.73
5.6.270.0040.01114.08
5.6.260.0070.00714.20
5.6.250.0030.00714.27
5.6.240.0030.01014.43
5.6.230.0120.00614.59
5.6.220.0030.01314.49
5.6.210.0060.04517.47
5.6.200.0100.02316.31
5.6.190.0070.02917.37
5.6.180.0260.04517.57
5.6.170.0150.03117.32
5.6.160.0080.04217.21
5.6.150.0060.02616.24
5.6.140.0050.04816.28
5.6.130.0060.02516.33
5.6.120.0070.04417.61
5.6.110.0080.03017.71
5.6.100.0050.04317.66
5.6.90.0070.03717.73
5.6.80.0080.04317.24
5.6.70.0150.00313.96
5.6.60.0100.00314.15
5.6.50.0090.00614.25
5.6.40.0040.01214.34
5.6.30.0130.00714.01
5.6.20.0140.00314.39
5.6.10.0060.00614.04
5.6.00.0050.00314.12
5.5.380.0030.00310.93
5.5.370.0090.00310.88
5.5.360.0060.00610.80
5.5.350.0160.03715.68
5.5.340.0080.02314.61
5.5.330.0110.04015.60
5.5.320.1750.02415.66
5.5.310.0190.03615.55
5.5.300.0030.03314.58
5.5.290.0060.04314.53
5.5.280.0080.03815.90
5.5.270.0020.04716.06
5.5.260.0030.04615.87
5.5.250.0110.04015.80
5.5.240.0030.04215.45
5.5.230.0060.00311.05
5.5.220.0000.00510.95
5.5.210.0000.00510.86
5.5.200.0030.00710.96
5.5.190.0030.00310.88
5.5.180.0030.01311.04
5.5.170.0030.00710.67
5.5.160.0040.00411.14
5.5.150.0050.00311.17
5.5.140.0060.00610.97
5.5.130.0070.00311.14
5.5.120.0030.00711.03
5.5.110.0000.00810.80
5.5.100.0100.00011.20
5.5.90.0030.01011.04
5.5.80.0000.01010.79
5.5.70.0000.00711.09
5.5.60.0060.00610.98
5.5.50.0030.00910.82
5.5.40.0030.00910.79
5.5.30.0060.00310.95
5.5.20.0060.00611.02
5.5.10.0000.00911.08
5.5.00.0030.00311.16
5.4.450.0280.03315.38
5.4.440.0150.03015.26
5.4.430.0140.03215.26
5.4.420.0080.03314.90
5.4.410.0030.03415.04
5.4.400.0180.03014.89
5.4.390.0200.03214.97
5.4.380.0190.02714.78
5.4.370.0180.02314.77
5.4.360.0130.02714.67
5.4.350.0140.03114.76
5.4.340.0170.03014.95
5.4.330.0070.00310.77
5.4.320.0080.02011.78
5.4.310.0060.02511.74
5.4.300.0060.02511.66
5.4.290.0050.02111.68
5.4.280.0090.02111.67
5.4.270.0060.02311.73
5.4.260.0140.02214.82
5.4.250.0120.02314.80
5.4.240.0030.02915.08
5.4.230.0040.04315.04
5.4.220.0030.03214.97
5.4.210.0050.03814.83
5.4.200.0100.02715.05
5.4.190.0050.03314.95
5.4.180.0030.03914.84
5.4.170.0070.03514.82
5.4.160.0080.03514.90
5.4.150.0020.03215.04
5.4.140.0050.03213.74
5.4.130.0050.02613.79
5.4.120.0060.03013.76
5.4.110.0110.02713.64
5.4.100.0030.02713.63
5.4.90.0080.03013.47
5.4.80.0080.03013.71
5.4.70.0050.03813.54
5.4.60.0050.02813.72
5.4.50.0050.04013.70
5.4.40.0020.03813.56
5.4.30.0050.02813.68
5.4.20.0030.02813.56
5.4.10.0100.03213.73
5.4.00.0070.03613.36
5.3.290.0040.02211.73
5.3.280.0070.02712.58
5.3.270.0090.03812.51
5.3.260.0070.02812.57
5.3.250.0030.03012.51
5.3.240.0050.03012.58
5.3.230.0020.04312.36
5.3.220.0090.02512.37
5.3.210.0100.03912.37
5.3.200.0070.03212.38
5.3.190.0120.03012.52
5.3.180.0100.03012.37
5.3.170.0060.03612.36
5.3.160.0030.03612.56
5.3.150.0010.03312.57
5.3.140.0060.02612.44
5.3.130.0030.03612.45
5.3.120.0060.02912.41
5.3.110.0060.02712.54
5.3.100.0110.02312.19
5.3.90.0050.02812.21
5.3.80.0100.03212.16
5.3.70.0080.02812.14
5.3.60.0110.03412.05
5.3.50.0060.02712.06
5.3.40.0070.03012.10
5.3.30.0060.02911.98
5.3.20.0020.03712.01
5.3.10.0060.02911.90
5.3.00.0030.02811.88
5.2.170.0100.01910.28
5.2.160.0080.03010.24
5.2.150.0040.02510.21
5.2.140.0030.03010.35
5.2.130.0070.02210.30
5.2.120.0050.02510.17
5.2.110.0050.02210.27
5.2.100.0030.02110.35
5.2.90.0050.01910.21
5.2.80.0040.02910.32
5.2.70.0020.02710.20
5.2.60.0010.02610.11
5.2.50.0050.02310.07
5.2.40.0050.02310.03
5.2.30.0030.02310.23
5.2.20.0130.01310.09
5.2.10.0050.02110.15
5.2.00.0080.0239.83
5.1.60.0070.0159.25
5.1.50.0020.0219.22
5.1.40.0030.0259.37
5.1.30.0040.0209.46
5.1.20.0070.0239.45
5.1.10.0090.0169.28
5.1.00.0040.0259.35
5.0.50.0020.0178.08
5.0.40.0020.0158.00
5.0.30.0000.0247.81
5.0.20.0030.0187.87
5.0.10.0020.0177.85
5.0.00.0030.0277.93
4.4.90.0000.0177.41
4.4.80.0020.0157.41
4.4.70.0020.0117.41
4.4.60.0030.0127.41
4.4.50.0010.0157.41
4.4.40.0030.0197.41
4.4.30.0020.0137.41
4.4.20.0030.0147.41
4.4.10.0000.0147.41
4.4.00.0020.0187.41
4.3.110.0020.0137.41
4.3.100.0000.0197.41
4.3.90.0010.0167.41
4.3.80.0040.0157.41
4.3.70.0030.0137.41
4.3.60.0000.0157.41
4.3.50.0020.0167.41
4.3.40.0020.0207.41
4.3.30.0050.0117.41
4.3.20.0020.0127.41
4.3.10.0020.0157.41
4.3.00.0080.0157.20

preferences:
49.08 ms | 401 KiB | 5 Q