3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { const CLOSED_CAPTION_MIME_TYPES = [ 'srt' => 'text/srt', 'scc' => 'text/scc', 'webvtt' => 'text/vtt', ]; public function testStatic($tag) { return !empty(static::CLOSED_CAPTION_MIME_TYPES[$tag]); } } $instance = new TestClass(); echo $instance->testStatic('srt');

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.0120.00918.43
8.3.50.0100.01016.12
8.3.40.0040.01118.67
8.3.30.0100.00318.84
8.3.20.0070.00021.85
8.3.10.0070.00021.90
8.3.00.0040.00419.06
8.2.180.0070.01018.54
8.2.170.0140.00722.96
8.2.160.0070.00722.26
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00422.13
8.2.120.0030.00626.35
8.2.110.0090.00020.43
8.2.100.0080.00317.85
8.2.90.0040.00419.17
8.2.80.0060.00318.05
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0050.00518.10
8.2.40.0040.00422.29
8.2.30.0070.00019.31
8.2.20.0070.00018.05
8.2.10.0040.00418.04
8.2.00.0040.00418.07
8.1.280.0070.00725.92
8.1.270.0080.00023.95
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00320.84
8.1.230.0070.00419.06
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0090.00018.10
8.1.170.0080.00018.47
8.1.160.0040.00419.03
8.1.150.0040.00420.72
8.1.140.0000.00719.58
8.1.130.0030.00318.80
8.1.120.0070.00017.42
8.1.110.0040.00417.51
8.1.100.0040.00417.36
8.1.90.0030.00617.48
8.1.80.0040.00417.45
8.1.70.0030.00317.35
8.1.60.0080.00017.58
8.1.50.0080.00017.52
8.1.40.0040.00417.55
8.1.30.0000.00817.58
8.1.20.0000.00717.48
8.1.10.0020.00517.57
8.1.00.0000.00717.49
8.0.300.0040.00418.77
8.0.290.0050.00316.60
8.0.280.0030.00318.50
8.0.270.0070.00017.25
8.0.260.0030.00316.88
8.0.250.0030.00316.85
8.0.240.0000.00716.82
8.0.230.0000.00716.90
8.0.220.0040.00416.86
8.0.210.0000.00716.78
8.0.200.0000.00716.96
8.0.190.0030.00617.00
8.0.180.0000.00816.95
8.0.170.0070.00016.98
8.0.160.0030.00316.76
8.0.150.0000.00716.90
8.0.140.0000.00816.82
8.0.130.0030.00313.31
8.0.120.0080.00016.77
8.0.110.0080.00016.70
8.0.100.0000.00716.73
8.0.90.0040.00417.01
8.0.80.0070.01416.84
8.0.70.0030.00516.85
8.0.60.0000.00716.69
8.0.50.0050.00316.88
8.0.30.0120.00617.23
8.0.20.0090.01217.41
8.0.10.0000.00816.85
8.0.00.0090.00916.73
7.4.330.0050.00015.55
7.4.320.0000.00616.59
7.4.300.0030.00516.59
7.4.290.0000.00916.64
7.4.280.0090.00016.50
7.4.270.0040.00316.54
7.4.260.0060.00013.29
7.4.250.0030.00516.61
7.4.240.0000.00816.43
7.4.230.0030.00316.44
7.4.220.0030.01716.64
7.4.210.0060.01316.45
7.4.200.0040.00416.58
7.4.160.0090.00716.41
7.4.150.0130.00317.40
7.4.140.0060.01217.86
7.4.130.0140.00516.51
7.4.120.0110.00816.55
7.4.110.0150.00416.46
7.4.100.0090.01216.51
7.4.90.0060.01016.48
7.4.80.0150.00419.39
7.4.70.0130.00316.60
7.4.60.0080.00816.69
7.4.50.0100.00316.58
7.4.40.0060.01016.50
7.4.30.0100.00716.64
7.4.10.0120.00414.87
7.4.00.0070.01115.07
7.3.330.0000.00613.17
7.3.320.0000.00513.09
7.3.310.0020.00516.34
7.3.300.0080.00016.32
7.3.290.0080.00716.28
7.3.280.0110.00816.28
7.3.270.0130.00317.40
7.3.260.0060.01316.30
7.3.250.0120.00716.49
7.3.240.0100.00916.43
7.3.230.0140.00316.50
7.3.210.0090.00616.36
7.3.200.0110.00616.61
7.3.190.0080.00816.44
7.3.180.0130.00716.57
7.3.170.0030.01316.38
7.3.160.0030.01316.63
7.3.130.0050.01114.81
7.3.120.0040.01214.78
7.3.110.0050.01314.75
7.3.100.0110.00314.57
7.3.90.0000.01714.72
7.3.80.0110.00414.54
7.3.70.0060.00614.64
7.3.60.0030.00714.57
7.3.50.0040.01114.43
7.3.40.0100.00314.41
7.3.30.0100.00314.77
7.3.20.0120.00316.30
7.3.10.0080.00516.41
7.3.00.0090.00416.60
7.2.330.0060.01116.37
7.2.320.0080.01116.41
7.2.310.0160.00316.71
7.2.300.0100.00716.46
7.2.290.0100.00716.72
7.2.260.0060.00814.68
7.2.250.0040.01314.97
7.2.240.0070.01114.70
7.2.230.0090.00614.66
7.2.220.0090.00615.18
7.2.210.0060.00314.84
7.2.200.0040.01114.99
7.2.190.0040.01115.08
7.2.180.0060.00314.95
7.2.170.0060.00615.01
7.2.160.0110.00414.97
7.2.150.0090.00616.80
7.2.140.0060.00916.75
7.2.130.0050.00716.85
7.2.120.0070.00516.85
7.2.110.0050.00816.90
7.2.100.0050.01016.77
7.2.90.0050.00716.94
7.2.80.0090.00516.99
7.2.70.0050.00516.82
7.2.60.0110.01016.86
7.2.50.0060.00716.88
7.2.40.0050.01216.89
7.2.30.0070.00717.01
7.2.20.0040.01316.92
7.2.10.0100.00216.65
7.2.00.0040.00917.75
7.1.330.0090.00915.51
7.1.320.0080.00415.73
7.1.310.0000.00815.71
7.1.300.0000.01215.59
7.1.290.0060.00615.71
7.1.280.0060.00615.49
7.1.270.0070.00715.75
7.1.260.0070.00715.41
7.1.250.0050.00615.58
7.1.240.0040.00715.66
7.1.230.0070.01015.21
7.1.220.0040.00715.64
7.1.210.0030.01015.65
7.1.200.0070.00615.61
7.1.190.0070.00715.83
7.1.180.0030.01015.64
7.1.170.0030.00615.77
7.1.160.0130.00015.33
7.1.150.0000.00915.64
7.1.140.0040.01115.66
7.1.130.0060.00315.54
7.1.120.0000.01015.64
7.1.110.0100.00315.67
7.1.100.0110.00415.82
7.1.90.0000.01215.77
7.1.80.0000.00815.43
7.1.70.0030.00916.29
7.1.60.0290.01124.30
7.1.50.0300.01024.15
7.1.40.0270.01223.95
7.1.30.0320.01024.15
7.1.20.0420.01124.09
7.1.10.0220.01014.96
7.1.00.0370.01415.00
7.0.330.0070.00315.36
7.0.320.0040.00415.36
7.0.310.0090.00315.49
7.0.300.0110.00415.06
7.0.290.0070.01015.10
7.0.280.0030.01015.09
7.0.270.0030.01015.17
7.0.260.0070.00715.16
7.0.250.0060.01015.41
7.0.240.0100.00315.12
7.0.230.0000.01215.15
7.0.220.0030.00915.14
7.0.210.0070.00715.32
7.0.200.0260.00715.20
7.0.190.0240.00815.19
7.0.180.0200.01114.86
7.0.170.0270.00514.88
7.0.160.0390.00814.88
7.0.150.0330.01214.90
7.0.140.0300.00714.96
7.0.130.0300.01115.08
7.0.120.0360.00714.86
7.0.110.0240.00914.79
7.0.100.0220.01315.04
7.0.90.0230.01214.88
7.0.80.0320.01315.21
7.0.70.0340.00914.81
7.0.60.0330.01114.83
7.0.50.0680.00714.89
7.0.40.0280.01113.97
7.0.30.0350.01013.96
7.0.20.0220.01013.82
7.0.10.0250.00713.93
7.0.00.0270.01213.90
5.6.400.0040.00714.37
5.6.390.0070.00414.54
5.6.380.0030.00614.36
5.6.370.0070.00714.56
5.6.360.0120.00614.11
5.6.350.0130.00314.02
5.6.340.0100.00314.46
5.6.330.0000.00914.08
5.6.320.0000.00914.45
5.6.310.0030.00914.24
5.6.300.0090.00614.52
5.6.290.0000.01514.14
5.6.280.0140.00614.15
5.6.270.0080.00414.20
5.6.260.0080.00814.30
5.6.250.0040.01214.22
5.6.240.0000.01214.34
5.6.230.0040.00414.39
5.6.220.0000.01414.46
5.6.210.0000.01714.18
5.6.200.0000.01814.25
5.6.190.0040.01114.27
5.6.180.0140.00013.96
5.6.170.0000.01514.44
5.6.160.0000.01314.26
5.6.150.0050.00814.02
5.6.140.0060.00314.01
5.6.130.0060.00614.04
5.6.120.0070.00714.41
5.6.110.0040.01214.35
5.6.100.0060.00914.41
5.6.90.0060.00614.52
5.6.80.0000.01614.39
5.6.70.0040.00814.43
5.6.60.0080.00414.30
5.6.50.0000.01014.44
5.6.40.0100.00314.11
5.6.30.0030.01014.20
5.6.20.0000.01114.48
5.6.10.0000.00814.20
5.6.00.0070.00714.07

preferences:
48.09 ms | 401 KiB | 5 Q