3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 空 XML を bool にキャストすると false $falsy = new SimpleXMLElement('<bool></bool>'); var_dump((bool)$falsy);// false // 中身のある XML を bool にキャストすると true $truthy = new SimpleXMLElement('<bool><true/></bool>'); var_dump((bool)$truthy);

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.20.0170.00319.56
8.4.10.0110.00619.64
8.3.150.0100.01017.39
8.3.140.0100.00719.31
8.3.130.0100.01316.86
8.3.120.0100.01020.93
8.3.110.0030.01618.41
8.3.100.0060.00316.88
8.3.90.0070.00018.40
8.3.80.0030.00616.88
8.3.70.0110.00416.88
8.3.60.0120.00618.43
8.3.50.0110.00420.21
8.3.40.0000.01418.84
8.3.30.0120.00418.77
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.260.0070.01116.68
8.2.250.0040.00416.89
8.2.240.0120.00319.27
8.2.230.0090.00020.94
8.2.220.0030.00624.06
8.2.210.0100.01026.77
8.2.200.0030.00618.66
8.2.190.0120.00316.75
8.2.180.0110.00425.92
8.2.170.0040.01122.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00721.07
8.2.110.0030.00622.33
8.2.100.0040.00818.16
8.2.90.0060.00317.88
8.2.80.0030.00618.91
8.2.70.0060.00317.75
8.2.60.0080.00318.18
8.2.50.0000.00818.07
8.2.40.0040.00420.20
8.2.30.0050.00318.29
8.2.20.0050.00319.64
8.2.10.0000.00717.84
8.2.00.0000.00719.40
8.1.310.0140.00018.70
8.1.300.0030.00618.51
8.1.290.0070.00430.84
8.1.280.0070.00725.92
8.1.270.0030.00624.03
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00520.66
8.1.230.0090.00317.89
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00717.50
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0030.00618.80
8.1.160.0040.00419.05
8.1.150.0000.00918.84
8.1.140.0040.00417.72
8.1.130.0030.00319.06
8.1.120.0070.00017.52
8.1.110.0030.00517.72
8.1.100.0030.00317.53
8.1.90.0050.00217.68
8.1.80.0040.00417.48
8.1.70.0030.00317.69
8.1.60.0000.00817.67
8.1.50.0040.00417.59
8.1.40.0040.00417.75
8.1.30.0000.00817.84
8.1.20.0000.00717.71
8.1.10.0120.00017.59
8.1.00.0080.00017.63
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.01018.66
8.0.270.0040.00418.18
8.0.260.0030.00618.72
8.0.250.0040.00417.06
8.0.240.0040.00417.05
8.0.230.0030.00317.00
8.0.220.0070.00017.04
8.0.210.0070.00017.02
8.0.200.0110.00017.17
8.0.190.0000.00717.13
8.0.180.0040.00417.12
8.0.170.0030.00617.20
8.0.160.0000.00817.07
8.0.150.0040.00417.02
8.0.140.0000.00717.07
8.0.130.0050.00013.43
8.0.120.0080.00413.44
8.0.110.0060.00513.42
8.0.100.0060.00613.49
8.0.90.0060.00513.47
8.0.80.0090.00213.49
8.0.70.0060.00613.45
8.0.60.0080.00513.43
8.0.50.0080.00513.49
8.0.30.0070.00413.49
8.0.20.0080.00313.49
8.0.10.0100.00213.59
8.0.00.0070.00213.64
7.4.330.0000.00515.55
7.4.320.0070.00016.81
7.4.300.0030.00316.65
7.4.290.0040.00416.67
7.4.280.0080.00016.71
7.4.270.0070.00016.79
7.4.260.0030.00313.43
7.4.250.0100.00513.48
7.4.240.0130.00213.51
7.4.230.0080.00713.45
7.4.220.0060.00713.43
7.4.210.0110.00113.41
7.4.200.0090.00413.40
7.4.190.0090.00313.52
7.4.180.0100.00313.44
7.4.160.0080.00513.52
7.4.150.0070.00513.46
7.4.140.0120.00113.43
7.4.130.0110.00113.34
7.4.120.0100.00113.35
7.4.110.0110.00113.25
7.4.100.0100.00113.29
7.4.90.0060.00513.34
7.4.80.0080.00313.30
7.4.70.0060.00513.17
7.4.60.0060.00613.24
7.4.50.0070.00513.26
7.4.40.0080.00313.17
7.4.30.0070.00413.32
7.4.20.0060.00412.83
7.4.10.0080.00313.24
7.4.00.0100.00213.11
7.3.330.0080.00016.33
7.3.320.0100.00213.08
7.3.310.0060.00413.21
7.3.300.0090.00213.00
7.3.290.0070.00613.01
7.3.280.0070.00513.14
7.3.270.0120.00113.09
7.3.260.0080.00513.04
7.3.250.0080.00512.99
7.3.240.0100.00413.17
7.3.230.0100.00413.15
7.3.220.0140.00013.13
7.3.210.0110.00213.20
7.3.200.0080.00512.87
7.3.190.0100.00312.95
7.3.180.0100.00213.04
7.3.170.0090.00313.20
7.3.160.0100.00213.04
7.3.150.0080.00513.06
7.3.140.0060.00513.02
7.3.130.0080.00412.85
7.3.120.0080.00413.21
7.3.110.0060.00612.90
7.3.100.0110.00312.88
7.3.90.0100.00413.27
7.3.80.0080.00513.10
7.3.70.0110.00313.21
7.3.60.0100.00213.22
7.3.50.0120.00312.91
7.3.40.0090.00413.11
7.3.30.0090.00313.21
7.3.20.0090.00414.90
7.3.10.0110.00314.96
7.3.00.0150.00215.04

preferences:
33.11 ms | 403 KiB | 5 Q