3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( null ?? 'thing' ); var_dump( false ?? 'thing' ); var_dump( '' ?? 'thing' ); var_dump( ' ' ?? 'thing' ); var_dump( 0 ?? 'thing' ); var_dump( [] ?? 'thing' );

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.10.0070.01317.55
8.3.140.0110.00717.10
8.3.130.0130.00618.44
8.3.120.0080.00020.51
8.3.110.0040.00420.94
8.3.100.0000.00818.39
8.3.90.0080.00026.77
8.3.80.0050.00518.55
8.3.70.0090.01216.63
8.3.60.0120.00618.18
8.3.50.0100.01121.15
8.3.40.0140.00018.54
8.3.30.0070.00718.96
8.3.20.0000.00720.16
8.3.10.0000.00823.66
8.3.00.0000.00819.55
8.2.250.0000.00816.63
8.2.240.0100.00016.95
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0060.00326.77
8.2.200.0030.00616.38
8.2.190.0090.00616.58
8.2.180.0070.01518.16
8.2.170.0110.00418.84
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00519.36
8.2.110.0000.01020.99
8.2.100.0040.00817.78
8.2.90.0040.00417.63
8.2.80.0000.00818.79
8.2.70.0000.00817.90
8.2.60.0040.00417.97
8.2.50.0040.00418.10
8.2.40.0040.00419.21
8.2.30.0000.00719.23
8.2.20.0000.00717.73
8.2.10.0000.00717.89
8.2.00.0000.00817.86
8.1.300.0120.00319.81
8.1.290.0080.00030.84
8.1.280.0000.01425.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00019.29
8.1.230.0080.00420.89
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0080.00017.10
8.1.180.0000.00818.10
8.1.170.0050.00318.58
8.1.160.0050.00318.90
8.1.150.0050.00218.77
8.1.140.0000.00717.33
8.1.130.0040.00417.64
8.1.120.0050.00217.24
8.1.110.0000.00717.30
8.1.100.0030.00617.35
8.1.90.0000.00717.28
8.1.80.0030.00617.30
8.1.70.0000.00717.23
8.1.60.0050.00517.47
8.1.50.0000.00717.38
8.1.40.0100.00017.37
8.1.30.0030.00517.59
8.1.20.0040.00417.53
8.1.10.0060.00317.32
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0000.00916.58
8.0.280.0070.00018.28
8.0.270.0000.00816.66
8.0.260.0030.00317.12
8.0.250.0000.00716.87
8.0.240.0070.00016.89
8.0.230.0030.00316.93
8.0.220.0030.00316.73
8.0.210.0000.00716.78
8.0.200.0050.00216.85
8.0.190.0040.00416.86
8.0.180.0070.00016.86
8.0.170.0000.00716.73
8.0.160.0040.00416.79
8.0.150.0000.00716.73
8.0.140.0000.00716.81
8.0.130.0000.00513.24
8.0.120.0080.00016.68
8.0.110.0000.00816.82
8.0.100.0050.00316.71
8.0.90.0030.00516.91
8.0.80.0120.00316.85
8.0.70.0040.00416.61
8.0.60.0070.00016.82
8.0.50.0000.00716.89
8.0.30.0120.00816.89
8.0.20.0120.01217.40
8.0.10.0040.00416.82
8.0.00.0090.00916.65
7.4.330.0050.00015.03
7.4.320.0060.00016.36
7.4.300.0000.00616.39
7.4.290.0030.00416.36
7.4.280.0000.00916.50
7.4.270.0000.00716.48
7.4.260.0030.00316.34
7.4.250.0000.00716.33
7.4.240.0050.00216.42
7.4.230.0030.00316.50
7.4.220.0090.01616.51
7.4.210.0000.01416.41
7.4.200.0000.00716.58
7.4.160.0090.00616.38
7.4.150.0250.01017.40
7.4.140.0190.01017.86
7.4.130.0110.00916.27
7.4.120.0120.00816.29
7.4.110.0140.00916.36
7.4.100.0130.01116.38
7.4.90.0170.00016.33
7.4.80.0080.00819.39
7.4.70.0100.00716.53
7.4.60.0100.00716.21
7.4.50.0000.00416.37
7.4.40.0080.00816.55
7.4.30.0040.01316.34
7.4.00.0060.00914.80
7.3.330.0050.00013.04
7.3.320.0020.00213.05
7.3.310.0000.00716.28
7.3.300.0000.00616.25
7.3.290.0090.00716.23
7.3.280.0060.00816.18
7.3.270.0090.00917.40
7.3.260.0120.00916.17
7.3.250.0090.01216.26
7.3.240.0040.01316.20
7.3.230.0110.01016.39
7.3.210.0030.01316.30
7.3.200.0130.00316.37
7.3.190.0030.01216.14
7.3.180.0090.00616.16
7.3.170.0120.00816.31
7.3.160.0040.01216.09
7.3.10.0020.01216.40
7.3.00.0040.00916.28
7.2.330.0120.00616.48
7.2.320.0100.00716.38
7.2.310.0060.01116.33
7.2.300.0100.00916.32
7.2.290.0100.00716.49
7.2.130.0100.00516.63
7.2.120.0000.01416.54
7.2.110.0070.00716.48
7.2.100.0030.01016.53
7.2.90.0060.00916.78
7.2.80.0050.01016.78
7.2.70.0070.01116.55
7.2.60.0020.01316.64
7.2.50.0040.01316.67
7.2.40.0050.00716.84
7.2.30.0050.00516.72
7.2.20.0110.00916.74
7.2.10.0120.00716.69
7.2.00.0070.00617.60
7.1.250.0080.00815.65
7.1.240.0070.00315.48
7.1.230.0130.00315.35
7.1.220.0040.00715.62
7.1.210.0080.00815.44
7.1.200.0090.00515.49
7.1.190.0040.00815.54
7.1.180.0100.00615.55
7.1.170.0170.00315.51
7.1.160.0060.00915.78
7.1.150.0030.00915.25
7.1.140.0110.00015.57
7.1.130.0030.00715.76
7.1.120.0060.00315.63
7.1.110.0070.01115.51
7.1.100.0050.00416.91
7.1.90.0000.01215.66
7.1.80.0000.01115.70
7.1.70.0030.00516.42
7.1.60.0070.01017.86
7.1.50.0110.00316.08
7.1.40.0140.00315.53
7.1.30.0060.00615.64
7.1.20.0080.00015.59
7.1.10.0090.00315.61
7.1.00.0040.04019.01
7.0.330.0040.00815.03
7.0.320.0070.00715.31
7.0.310.0110.00415.28
7.0.300.0140.00715.07
7.0.290.0100.00315.31
7.0.280.0100.00615.26
7.0.270.0090.00615.16
7.0.260.0030.01015.22
7.0.250.0040.00815.26
7.0.240.0070.01015.29
7.0.230.0070.00715.42
7.0.220.0080.00615.29
7.0.210.0070.00415.50
7.0.200.0070.00715.84
7.0.190.0080.00815.13
7.0.180.0160.00315.30
7.0.170.0060.00315.26
7.0.160.0060.00915.48
7.0.150.0030.01315.15
7.0.140.0060.00615.18
7.0.130.0040.00815.42
7.0.120.0080.00815.35
7.0.110.0070.00715.43
7.0.100.0030.01015.18
7.0.90.0110.00714.96
7.0.80.0080.00415.40
7.0.70.0030.02918.41
7.0.60.0070.04218.41
7.0.50.0090.04218.58
7.0.40.0030.04516.71
7.0.30.0050.04616.70
7.0.20.0050.03316.76
7.0.10.0080.04516.59
7.0.00.0080.04316.67
5.6.380.0040.00713.77
5.6.370.0070.00713.77
5.6.360.0090.00314.31
5.6.350.0060.00314.20
5.6.340.0100.00313.93
5.6.330.0000.01314.09
5.6.320.0070.00714.12
5.6.310.0000.01114.16
5.6.300.0040.01114.10
5.6.290.0030.01014.20
5.6.280.0060.04017.68
5.6.270.0070.00714.23
5.6.260.0040.01114.16
5.6.250.0000.01114.23
5.6.240.0030.01013.96
5.6.230.0060.00614.07
5.6.220.0050.04317.23
5.6.210.0050.02317.24
5.6.200.0080.02717.46
5.6.190.0110.04017.55
5.6.180.0090.04017.64
5.6.170.0100.04217.44
5.6.160.0060.04617.53
5.6.150.0070.03217.41
5.6.140.0070.02517.43
5.6.130.0150.04017.61
5.6.120.0100.04217.51
5.6.110.0070.03917.56
5.6.100.0070.02517.57
5.6.90.0050.03817.45
5.6.80.0080.04017.15
5.6.70.0090.03517.31
5.6.60.0090.04417.12
5.6.50.0050.05017.14
5.6.40.0130.04017.36
5.6.30.0070.04817.23
5.6.20.0080.03517.14
5.6.10.0120.03517.13
5.6.00.0070.04717.18
5.5.380.0040.00810.70
5.5.370.0030.00710.90
5.5.360.0090.02015.70
5.5.350.0030.03215.64
5.5.340.0030.02515.79
5.5.330.0090.02215.82
5.5.320.0030.04715.80
5.5.310.0110.04115.92
5.5.300.0050.02615.89
5.5.290.0100.03215.84
5.5.280.0020.04915.78
5.5.270.0100.04215.67
5.5.260.0070.04615.84
5.5.250.0070.04215.82
5.5.240.0100.03815.48
5.5.230.0070.04215.62
5.5.220.0030.02515.42
5.5.210.0070.02515.47
5.5.200.0050.03115.51
5.5.190.0080.04315.50
5.5.180.0100.04315.47
5.5.170.0080.00310.79
5.5.160.0080.04015.48
5.5.150.0080.04015.53
5.5.140.0060.03815.48
5.5.130.0080.02615.47
5.5.120.0050.03315.39
5.5.110.0050.03115.32
5.5.100.0080.03315.36
5.5.90.0050.02715.31
5.5.80.0100.03515.31
5.5.70.0070.02315.22
5.5.60.0110.03615.49
5.5.50.0090.02015.41
5.5.40.0060.04315.45
5.5.30.0030.04315.45
5.5.20.0010.03315.34
5.5.10.0060.03015.48
5.5.00.0080.03615.40
5.4.450.0030.02815.15
5.4.440.0060.04115.08
5.4.430.0070.02815.08
5.4.420.0050.02315.22
5.4.410.0050.02315.03
5.4.400.0030.02314.97
5.4.390.0080.03614.96
5.4.380.0060.03014.80
5.4.370.0030.02814.71
5.4.360.0060.03814.89
5.4.350.0030.04414.81
5.4.340.0030.04514.81
5.4.330.0040.00710.68
5.4.320.0040.04215.01
5.4.310.0120.02714.77
5.4.300.0040.02214.87
5.4.290.0020.02814.82
5.4.280.0080.03114.97
5.4.270.0070.04214.63
5.4.260.0080.04014.82
5.4.250.0160.02614.92
5.4.240.0050.03614.78
5.4.230.0030.04114.66
5.4.220.0060.03514.92
5.4.210.0050.03214.85
5.4.200.0030.03814.62
5.4.190.0100.03314.67
5.4.180.0000.04614.68
5.4.170.0050.04014.86
5.4.160.0030.04514.77
5.4.150.0040.03214.78
5.4.140.0050.04113.62
5.4.130.0070.03713.48
5.4.120.0100.03813.62
5.4.110.0080.03513.58
5.4.100.0020.04113.68
5.4.90.0050.03813.56
5.4.80.0050.02813.60
5.4.70.0020.04413.63
5.4.60.0050.04013.46
5.4.50.0070.04113.51
5.4.40.0020.03213.57
5.4.30.0060.04013.62
5.4.20.0060.03913.41
5.4.10.0020.04713.62
5.4.00.0070.03913.37
5.3.290.0080.03712.43
5.3.280.0050.03212.38
5.3.270.0080.03712.39
5.3.260.0050.03612.19
5.3.250.0070.02812.28
5.3.240.0050.03312.31
5.3.230.0050.03912.38
5.3.220.0030.04612.25
5.3.210.0080.04512.34
5.3.200.0040.02412.29
5.3.190.0070.02312.34
5.3.180.0050.04312.36
5.3.170.0030.02312.44
5.3.160.0130.02712.37
5.3.150.0030.04212.42
5.3.140.0040.03912.39
5.3.130.0100.02312.32
5.3.120.0000.05012.22
5.3.110.0020.04012.32
5.3.100.0070.03412.00
5.3.90.0020.04312.09
5.3.80.0060.03712.13
5.3.70.0080.03811.99
5.3.60.0090.03711.95
5.3.50.0080.04112.00
5.3.40.0030.03012.08
5.3.30.0080.03311.94
5.3.20.0050.03011.86
5.3.10.0080.03411.72
5.3.00.0060.03111.72
5.2.170.0000.04010.62
5.2.160.0070.02210.70
5.2.150.0040.03110.77
5.2.140.0080.03110.72
5.2.130.0050.02210.74
5.2.120.0030.03410.74
5.2.110.0100.02010.67
5.2.100.0020.03010.73
5.2.90.0030.03210.76
5.2.80.0020.02710.70
5.2.70.0060.03010.62
5.2.60.0020.03510.59
5.2.50.0010.02810.72
5.2.40.0020.03310.75
5.2.30.0000.02210.54
5.2.20.0020.03410.56
5.2.10.0040.03510.58
5.2.00.0060.01510.40
5.1.60.0030.02010.38
5.1.50.0030.01310.38
5.1.40.0000.01510.38
5.1.30.0050.02110.38
5.1.20.0010.01610.38
5.1.10.0000.01810.38
5.1.00.0020.01510.38
5.0.50.0050.01810.38
5.0.40.0000.02410.38
5.0.30.0050.01610.38
5.0.20.0040.01010.38
5.0.10.0000.01410.38
5.0.00.0020.01710.38
4.4.90.0020.01710.38
4.4.80.0020.01910.38
4.4.70.0030.01210.38
4.4.60.0070.01710.38
4.4.50.0030.01010.38
4.4.40.0010.02110.38
4.4.30.0020.00910.38
4.4.20.0020.00710.38
4.4.10.0030.01010.38
4.4.00.0020.01310.38
4.3.110.0020.01010.38
4.3.100.0040.00510.38
4.3.90.0020.00810.38
4.3.80.0000.01510.38
4.3.70.0020.00810.38
4.3.60.0020.00810.38
4.3.50.0000.01710.38
4.3.40.0020.01710.38
4.3.30.0020.01010.38
4.3.20.0000.01310.38
4.3.10.0020.01010.38
4.3.00.0020.01110.38

preferences:
28.46 ms | 403 KiB | 5 Q