3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = ( $post->post_type ?? 'not-attachment' ) === 'attachement' ; var_dump( $a );
based on LdBVV

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)
7.4.00.0050.01115.13
7.3.120.0050.01314.76
7.3.110.0090.00914.60
7.3.100.0090.00714.83
7.3.90.0050.01214.74
7.3.80.0060.00614.80
7.3.70.0050.00814.56
7.3.60.0110.00714.60
7.3.50.0100.00514.65
7.3.40.0090.00714.68
7.3.30.0060.01014.66
7.3.20.0080.00715.93
7.3.10.0070.01016.11
7.3.00.0030.01415.75
7.2.250.0000.01614.89
7.2.240.0070.01114.93
7.2.230.0070.00714.91
7.2.220.0070.01014.96
7.2.210.0070.00914.87
7.2.200.0080.00914.70
7.2.190.0120.00514.74
7.2.180.0080.00714.81
7.2.170.0050.00914.92
7.2.160.0030.00814.94
7.2.150.0130.00116.11
7.2.140.0050.01015.72
7.2.130.0050.01215.93
7.2.120.0080.00615.77
7.2.110.0070.00715.81
7.2.100.0050.01015.72
7.2.90.0080.00716.03
7.2.80.0050.01215.90
7.2.70.0040.01115.87
7.2.60.0060.00815.99
7.2.50.0080.00815.86
7.2.40.0240.01115.77
7.2.30.0130.00515.74
7.2.20.0070.01215.90
7.2.10.0070.01215.97
7.2.00.0080.00715.93
7.1.330.0060.00915.20
7.1.320.0050.00715.17
7.1.310.0050.01015.14
7.1.300.0060.01014.95
7.1.290.0050.00514.97
7.1.280.0160.00915.01
7.1.270.0090.00514.90
7.1.260.0030.01214.99
7.1.250.0050.00814.86
7.1.240.0200.00413.82
7.1.230.0120.00813.69
7.1.220.0190.00413.93
7.1.210.0160.00713.82
7.1.200.0060.01013.90
7.1.190.0080.00913.84
7.1.180.0120.00613.57
7.1.170.0120.00413.66
7.1.160.0120.00813.98
7.1.150.0180.00413.73
7.1.140.0130.00713.63
7.1.130.0180.00313.77
7.1.120.0120.00813.63
7.1.110.0040.01513.98
7.1.100.0070.01313.93
7.1.90.0090.00913.34
7.1.80.0140.00613.68
7.1.70.0120.00613.60
7.1.60.0120.00813.85
7.1.50.0190.00913.83
7.1.40.0160.00413.46
7.1.30.0080.01613.42
7.1.20.0340.00713.93
7.1.10.0160.00613.82
7.1.00.0160.00613.82
7.0.330.0120.00913.46
7.0.320.0120.00813.39
7.0.310.0000.01713.38
7.0.300.0090.00513.38
7.0.290.0140.00413.33
7.0.280.0130.00313.70
7.0.270.0100.00813.50
7.0.260.0120.00713.17
7.0.250.0110.00813.48
7.0.240.0110.00813.30
7.0.230.0110.00713.21
7.0.220.0090.00913.39
7.0.210.0170.00013.19
7.0.200.0110.01313.45
7.0.190.0160.00613.47
7.0.180.0080.01213.29
7.0.170.0150.00613.21
7.0.160.0140.00313.63
7.0.150.0130.00513.50
7.0.140.0180.00313.69
7.0.130.0060.01513.61
7.0.120.0150.00813.57
7.0.110.0100.00813.47
7.0.100.0110.01113.54
7.0.90.0180.00813.35
7.0.80.0090.01213.35
7.0.70.0070.00713.41
7.0.60.0150.00513.08
7.0.50.0060.01013.41
7.0.40.0070.01013.29
7.0.30.0090.01213.46
7.0.20.0050.01113.13
7.0.10.0180.00013.61
7.0.00.0060.01113.59
5.6.400.0100.00913.82
5.6.390.0200.00314.07
5.6.380.0150.00713.75
5.6.370.0100.00513.31
5.6.360.0110.00413.86
5.6.350.0090.00614.33
5.6.340.0170.00014.02
5.6.330.0110.01113.66
5.6.320.0160.00314.05
5.6.310.0110.00714.02
5.6.300.0080.01914.06
5.6.290.0220.00513.95
5.6.280.0080.01614.14
5.6.270.0110.01114.00
5.6.260.0110.01014.36
5.6.250.0110.01114.00
5.6.240.0200.00313.78
5.6.230.0110.00713.93
5.6.220.0140.00414.27
5.6.210.0150.00213.95
5.6.200.0080.00714.06
5.6.190.0040.01414.10
5.6.180.0150.00314.05
5.6.170.0160.00314.01
5.6.160.0090.00914.02
5.6.150.0160.00414.33
5.6.140.0200.00013.80
5.6.130.0130.00814.19
5.6.120.0100.01013.89
5.6.110.0130.00513.89
5.6.100.0160.00413.76
5.6.90.0110.00713.88
5.6.80.0140.00414.09
5.6.70.0100.00813.91
5.6.60.0050.01614.03
5.6.50.0040.01314.11
5.6.40.0070.00714.08
5.6.30.0080.00814.04
5.6.20.0070.01013.88
5.6.10.0080.01213.91
5.6.00.0050.01513.86
5.5.380.0150.00614.03
5.5.370.0120.00613.77
5.5.360.0080.00813.75
5.5.350.0090.00913.89
5.5.340.0150.00413.91
5.5.330.0150.01114.14
5.5.320.0060.01214.02
5.5.310.0000.01913.68
5.5.300.0150.00513.59
5.5.290.0120.00614.18
5.5.280.0150.00413.91
5.5.270.0210.00013.86
5.5.260.0120.01213.88
5.5.250.0040.01113.59
5.5.240.0120.00613.69
5.5.230.0180.00013.82
5.5.220.0070.01114.06
5.5.210.0120.00913.68
5.5.200.0140.00713.79
5.5.190.0200.00513.75
5.5.180.0230.00313.67
5.5.170.0120.00914.02
5.5.160.0100.01013.95
5.5.150.0130.01013.73
5.5.140.0150.00914.10
5.5.130.0200.00013.77
5.5.120.0050.01314.14
5.5.110.0060.01114.05
5.5.100.0080.00813.93
5.5.90.0150.00313.38
5.5.80.0060.01313.91
5.5.70.0160.00013.50
5.5.60.0100.00714.18
5.5.50.0110.00713.76
5.5.40.0100.01013.52
5.5.30.0120.00613.45
5.5.20.0120.01214.02
5.5.10.0110.01113.82
5.5.00.0180.00013.91
5.4.450.0120.00410.75
5.4.440.0040.00810.86
5.4.430.0090.00910.74
5.4.420.0120.00310.80
5.4.410.0070.00710.89
5.4.400.0080.00410.75
5.4.390.0110.00410.71
5.4.380.0070.01010.68
5.4.370.0070.00710.41
5.4.360.0100.00510.85
5.4.350.0160.00010.40
5.4.340.0110.00310.75
5.4.330.0100.00510.85
5.4.320.0160.00310.57
5.4.310.0090.00910.72
5.4.300.0150.00310.95
5.4.290.0150.00010.73
5.4.280.0110.00510.57
5.4.270.0130.00010.80
5.4.260.0100.00310.91
5.4.250.0040.00911.00
5.4.240.0090.00410.66
5.4.230.0040.00810.65
5.4.220.0090.00510.92
5.4.210.0090.00910.82
5.4.200.0110.00610.72
5.4.190.0030.01010.58
5.4.180.0080.01010.82
5.4.170.0140.00010.75
5.4.160.0080.00910.59
5.4.150.0130.00410.73
5.4.140.0070.00810.76
5.4.130.0070.00510.46
5.4.120.0140.00010.34
5.4.110.0030.01110.45
5.4.100.0120.00311.11
5.4.90.0080.00910.57
5.4.80.0100.00310.81
5.4.70.0140.00010.68
5.4.60.0080.00810.89
5.4.50.0090.00610.66
5.4.40.0110.00410.92
5.4.30.0120.00310.81
5.4.20.0140.00010.89
5.4.10.0000.01410.85
5.4.00.0090.00310.50
5.3.290.0030.00910.29
5.3.280.0040.00810.03
5.3.270.0060.00610.13
5.3.260.0070.00710.19
5.3.250.0100.0059.97
5.3.240.0110.00410.02
5.3.230.0030.00610.18
5.3.220.0000.01410.12
5.3.210.0100.0039.89
5.3.200.0060.00610.04
5.3.190.0120.0009.99
5.3.180.0050.00510.12
5.3.170.0090.00610.25
5.3.160.0110.00310.21
5.3.150.0030.01210.23
5.3.140.0040.00810.24
5.3.130.0060.00310.19
5.3.120.0040.00710.16
5.3.110.0120.00810.22
5.3.100.0080.00410.31
5.3.90.0080.00410.23
5.3.80.0100.00010.08
5.3.70.0090.00510.09
5.3.60.0030.01010.23
5.3.50.0080.0049.97
5.3.40.0100.00310.24
5.3.30.0000.00910.14
5.3.20.0050.00710.20
5.3.10.0080.0059.93
5.3.00.0070.0099.82
5.2.170.0070.0049.32
5.2.160.0040.0049.27
5.2.150.0040.0049.29
5.2.140.0100.0009.27
5.2.130.0030.0069.27
5.2.120.0090.0039.27
5.2.110.0030.0059.27
5.2.100.0100.0009.27
5.2.90.0110.0009.27
5.2.80.0050.0039.27
5.2.70.0030.0049.27
5.2.60.0040.0049.27
5.2.50.0040.0079.27
5.2.40.0030.0079.27
5.2.30.0060.0039.27
5.2.20.0000.0079.27
5.2.10.0040.0049.27
5.2.00.0030.0069.27
5.1.60.0040.0049.27
5.1.50.0060.0039.27
5.1.40.0040.0049.27
5.1.30.0060.0039.27
5.1.20.0090.0009.27
5.1.10.0060.0039.27
5.1.00.0030.0069.27
5.0.50.0000.0069.27
5.0.40.0030.0039.27
5.0.30.0000.0069.27
5.0.20.0030.0039.27
5.0.10.0050.0039.27
5.0.00.0040.0049.27
4.4.90.0000.0059.27
4.4.80.0000.0059.27
4.4.70.0020.0029.27
4.4.60.0050.0009.27
4.4.50.0000.0059.27
4.4.40.0030.0039.27
4.4.30.0030.0039.27
4.4.20.0020.0029.27
4.4.10.0000.0059.27
4.4.00.0060.0009.27
4.3.110.0000.0079.27
4.3.100.0000.0059.27
4.3.90.0000.0059.27
4.3.80.0040.0049.27
4.3.70.0000.0059.27
4.3.60.0040.0009.27
4.3.50.0000.0049.27
4.3.40.0000.0059.27
4.3.30.0030.0029.27
4.3.20.0020.0029.27
4.3.10.0000.0059.27
4.3.00.0040.0009.27